Home > @i2analyze/notebook-sdk > app > ICancelation > waitForPromiseOrCancel
app.ICancelation.waitForPromiseOrCancel() method
Launches an asynchronous operation through the specified promise.
Signature:
waitForPromiseOrCancel<T>(promise: Promise<T>): Promise<T>;
Introduced: version 1.1
Type Parameters
Parameter | Type | Description |
---|---|---|
T | any | The type of the output from the operation. |
Parameters
Parameter | Type | Description |
---|---|---|
promise | Promise<T> | A promise that resolves to the output from the operation. |
Returns:
Promise<T>
A promise that also resolves to the output from the operation.