Promise class

Constructors

Promise(Sink<T>)

Properties

continueWith
continueWithPromise
finally
on
onSuccessContinueWith
onSuccessContinueWithPromise
result

Constructor Details

Promise(Sink<T>)

new Promise(sink: Sink<T>)

Parameters

sink
Sink<T>

Property Details

continueWith

continueWith: (continuationCallback: (promiseResult: PromiseResult<T>) => TContinuationResult) => Promise<TContinuationResult>

Property Value

(continuationCallback: (promiseResult: PromiseResult<T>) => TContinuationResult) => Promise<TContinuationResult>

continueWithPromise

continueWithPromise: (continuationCallback: (promiseResult: PromiseResult<T>) => Promise<TContinuationResult>) => Promise<TContinuationResult>

Property Value

(continuationCallback: (promiseResult: PromiseResult<T>) => Promise<TContinuationResult>) => Promise<TContinuationResult>

finally

finally: (callback: () => void) => Promise<T>

Property Value

(callback: () => void) => Promise<T>

on

on: (successCallback: (result: T) => void, errorCallback: (error: string) => void) => Promise<T>

Property Value

(successCallback: (result: T) => void, errorCallback: (error: string) => void) => Promise<T>

onSuccessContinueWith

onSuccessContinueWith: (continuationCallback: (result: T) => TContinuationResult) => Promise<TContinuationResult>

Property Value

(continuationCallback: (result: T) => TContinuationResult) => Promise<TContinuationResult>

onSuccessContinueWithPromise

onSuccessContinueWithPromise: (continuationCallback: (result: T) => Promise<TContinuationResult>) => Promise<TContinuationResult>

Property Value

(continuationCallback: (result: T) => Promise<TContinuationResult>) => Promise<TContinuationResult>

result

result: () => PromiseResult<T>

Property Value

() => PromiseResult<T>