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

fromPromise() ​

Emits the promise's resolved value once then completes; rejections become stream errors (Tier 2).

Signature ​

ts
function fromPromise<T>(promise: Promise<T>): ProducerStore<T>

Parameters ​

ParameterTypeDescription
promisePromise&lt;T&gt;The promise to adapt.

Returns ​

ProducerStore&lt;T&gt;

Released under the MIT License.