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
| Parameter | Type |
|---|---|
self | ContentiaStream<A, D> |
Returns
Promise<D>