Skip to content

TypeScript API / contentia/core / ContentiaStream / runPromise

Function: runPromise() ​

ts
function runPromise<A, D>(self): Promise<D>;

Promise-shaped entry point for non-Effect consumers. Drops data and metadata; resolves with the stream's done value or rejects with the fatal ContentiaError.

Type Parameters ​

Type Parameter
A
D extends ContentiaDone

Parameters ​

ParameterType
selfContentiaStream<A, D>

Returns ​

Promise<D>