CoroutineInstance
Hierarchy
- PromiseLike<void>
- CoroutineInstance
Index
Properties
Methods
Properties
[iterator]
Type declaration
Returns Generator<number | CoroutineInstance | Promise<any>, void, number>
cancel
Type declaration
Returns void
done
generator
start
Type declaration
Returns CoroutineInstance
then
Type declaration
Type parameters
- TResult1 = void
- TResult2 = never
Parameters
optionalonfulfilled: (value: void) => TResult1 | PromiseLike<TResult1>
The callback to execute when the Promise is resolved.
optionalonrejected: (reason: any) => TResult2 | PromiseLike<TResult2>
The callback to execute when the Promise is rejected.
Returns PromiseLike<TResult1 | TResult2>
A Promise for the completion of which ever callback is executed.
Methods
isComplete
Returns boolean
isRunning
Returns boolean
Attaches callbacks for the resolution and/or rejection of the Promise.