Class CancelablePromiseInternal<T>
- CancelablePromiseInternal
Constructors
constructor
- new CancelablePromiseInternal<T>(__namedParameters): CancelablePromiseInternal<T>
Parameters
- __namedParameters: {
executor?: ((resolve: ((value: T | PromiseLike<T>) => void), reject: ((reason?: any) => void), onCancel: ((cancelHandler: (() => void)) => void)) => void);
internals?: Internals;
promise?: Promise<T>;
}Optional
executor?: ((resolve: ((value: T | PromiseLike<T>) => void), reject: ((reason?: any) => void), onCancel: ((cancelHandler: (() => void)) => void)) => void)
- (resolve, reject, onCancel): void
Parameters
- resolve: ((value: T | PromiseLike<T>) => void)
- (value): void
Returns void
- reject: ((reason?: any) => void)
- (reason?): void
Returns void
- onCancel: ((cancelHandler: (() => void)) => void)
- (cancelHandler): void
Parameters
- cancelHandler: (() => void)
Returns void
Returns void
Optional
internals?: Internals
Optional
promise?: Promise<T>
Properties
[toStringTag]
[toStringTag]: string
Methods
cancel
- cancel(): void
Returns void
finally
- finally(onfinally?, runWhenCanceled?): CancelablePromise<T>
Parameters
Optional
onfinally: null | (() => void)Optional
runWhenCanceled: boolean
isCanceled
- isCanceled(): boolean
Returns boolean