rawFromPromise()
Converts a PromiseLike<T> into a raw callbag source that emits the resolved value once then completes. Rejections become END with error.
Signature
ts
function rawFromPromise<T>(promise: PromiseLike<T>): CallbagSourceParameters
| Parameter | Type | Description |
|---|---|---|
promise | PromiseLike<T> | The promise (or thenable) to adapt. |
Returns
A raw callbag source function.