Properties
isComplete
isComplete: boolean
Methods
onComplete
- onComplete(listener: function): Future<T>
onError
- onError(listener: function): Future<T>
onProgress
- onProgress(listener: function): Future<T>
-
Parameters
-
listener: function
-
- (bytesLoaded: number, bytesTotal: number): void
-
Parameters
-
bytesLoaded: number
-
bytesTotal: number
Returns void
ready
- ready(waitTime?: number): Future<T>
-
Parameters
-
Optional waitTime: number
result
- result(waitTime?: number): T | null
-
Parameters
-
Optional waitTime: number
Returns T
|
null
then
- then<U>(next: function): Future<U>
-
Type parameters
Parameters
Static withError
- withError(error: any): Future<any>
-
Parameters
Returns Future<any>
Static withValue
- withValue<T>(value: T): Future<T>
-
Type parameters
Parameters