Constructors
constructor
-
Type parameters
Parameters
Properties
catchError
catch
Error: (onError: (error?: T) => void, props?: { test?: (error: T) => undefined | boolean }) => Future<T>
Type declaration
-
- (onError: (error?: T) => void, props?: { test?: (error: T) => undefined | boolean }): Future<T>
-
Parameters
-
onError: (error?: T) => void
-
Optional props: { test?: (error: T) => undefined | boolean }
-
Optional test?: (error: T) => undefined | boolean
-
- (error: T): undefined | boolean
-
Parameters
Returns undefined | boolean
then
then
: <R>
(onValue
: (value
: T) => R, props
?: { onError
?: (err
: any) => undefined | void }) => Future<R>
Type declaration
-
- <R>(onValue: (value: T) => R, props?: { onError?: (err: any) => undefined | void }): Future<R>
-
Type parameters
Parameters
-
onValue: (value: T) => R
-
Optional props: { onError?: (err: any) => undefined | void }
-
Optional onError?: (err: any) => undefined | void
-
- (err: any): undefined | void
-
Parameters
Returns undefined | void
whenComplete
when
Complete: (action: () => any) => Future<T>
Type declaration
-
- (action: () => any): Future<T>
Methods
Static any
-
Type parameters
Parameters
Static doWhile
-
Parameters
Returns Future<any>
Static error
- error<T>(error: T, stackTrace?: any): Future<T>
-
Type parameters
Parameters
-
error: T
-
Optional stackTrace: any
Static forEach
- forEach<T>(element: T[], action: (element: T) => any): Future<any>
-
Type parameters
Parameters
-
element: T[]
-
action: (element: T) => any
Returns Future<any>
Static sync
-
Type parameters
Parameters
Static value
-
Type parameters
Parameters
Static wait
- wait<T>(futures: Future<T>[], __namedParameters: { cleanUp: (successValue: T) => void; eagerError: boolean }): Future<T[]>
-
Type parameters
Parameters
-
futures: Future<T>[]
-
__namedParameters: { cleanUp: (successValue: T) => void; eagerError: boolean }
-
cleanUp: (successValue: T) => void
-
eagerError: boolean
Returns Future<T[]>