Class InvocationHandle<R>
Constructors
constructor
- new InvocationHandle<R>(invocationId, resultPromise): InvocationHandle<R>
Parameters
- invocationId: string
- resultPromise: Promise<R>
Properties
Readonly
invocationId
invocationId: string
Readonly
resultPromise
resultPromise: Promise<R> Methods
result
- result(): Promise<R>
Returns Promise<R>
state
- state(): Promise<"pending" | "resolved" | "rejected">
Returns Promise<"pending" | "resolved" | "rejected">
get the current state of the resultPromise.