@qbead/bloch-sphere
@qbead/bloch-sphere / CancellablePromise
Interface: CancellablePromise<T>
Defined in: src/animation.ts:8
Type Parameters
Property
Modifier
Type
Inherited from
Defined in
node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts:176
cancel(): void
Defined in: src/animation.ts:9
Returns
void
catch<TResult>(onrejected?): Promise<T | TResult>
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1557
Attaches a callback for only the rejection of the Promise.
Type Parameters
Type Parameter
Default type
Parameters
null | (reason) => TResult | PromiseLike<TResult>
The callback to execute when the Promise is rejected.
Returns
Promise<T | TResult>
A Promise for the completion of the callback.
Inherited from
Promise.catch
finally(onfinally?): Promise<T>
Defined in: node_modules/typescript/lib/lib.es2018.promise.d.ts:29
Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.
Parameters
The callback to execute when the Promise is settled (fulfilled or rejected).
Returns
Promise<T>
A Promise for the completion of the callback.
Inherited from
Promise.finally
then<TResult1, TResult2>(onfulfilled?, onrejected?): Promise<TResult1 | TResult2>
Defined in: node_modules/typescript/lib/lib.es5.d.ts:1550
Attaches callbacks for the resolution and/or rejection of the Promise.
Type Parameters
Type Parameter
Default type
Parameters
null | (value) => TResult1 | PromiseLike<TResult1>
The callback to execute when the Promise is resolved.
null | (reason) => TResult2 | PromiseLike<TResult2>
The callback to execute when the Promise is rejected.
Returns
Promise<TResult1 | TResult2>
A Promise for the completion of which ever callback is executed.
Inherited from
Promise.then