This project has been succeeded by GraphReFly. New development happens at graphrefly-ts. npm install @graphrefly/graphrefly
Skip to content

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>): CallbagSource

Parameters

ParameterTypeDescription
promisePromiseLike&lt;T&gt;The promise (or thenable) to adapt.

Returns

A raw callbag source function.

Released under the MIT License.