Returns current status of the future.
Returns the resolved value. May throw if the future is not in Done status.
Converts this future into a Promise.
Optional
onFulfilled: ((value) => TResult1 | PromiseLike<TResult1>)Optional
onRejected: ((reason?) => TResult2 | PromiseLike<TResult2>)Optional
reason: unknownGenerated using TypeDoc
A future indicates the completeness of an async task. This is used as an alternative to Promise for compatibility with non-event-driven environments, i.e. AssemblyScript / WebAssembly.