PromiseResult class

Constructors

PromiseResult(PromiseResultEventSource<T>)

Properties

error
isCompleted
isError
result
throwIfError

Constructor Details

PromiseResult(PromiseResultEventSource<T>)

new PromiseResult(promiseResultEventSource: PromiseResultEventSource<T>)

Parameters

promiseResultEventSource

PromiseResultEventSource<T>

Property Details

error

string error

Property Value

string

isCompleted

boolean isCompleted

Property Value

boolean

isError

boolean isError

Property Value

boolean

result

T result

Property Value

T

throwIfError

throwIfError: () => void

Property Value

() => void