core.readablepromise.finally | Medplum
ReadablePromise.finally() method
Attaches a callback that is invoked when the Promise is settled (fulfilled or rejected). The resolved value cannot be modified from the callback.
Signature:
finally(onfinally?: (() => void) | null): Promise<T>;
Parameters [](/content/docs/sdk/core.readablepromise.finally#parameters "Direct link to Parameters"/index.html)
| Parameter | Type | Description |
|---|---|---|
| onfinally | (() => void) | null |
Returns:
Promise
A Promise for the completion of the callback.