Skip to content

TypeScript API / contentia/core / ContentiaStream / runDone

Function: runDone() ​

ts
function runDone<A, D, R>(self): Effect<D, ContentiaError<ErrorCode, number>, R>;

Drain a ContentiaStream, ignoring all elements; return only the done value.

Use in non-delegation contexts where the caller genuinely doesn't care about data, recoverable warnings, or progress. When the caller is itself forwarding through a make body, use runCollectForwarding so the inner stream's warnings flow to the outer emit.

Type Parameters ​

Type Parameter
A
D extends ContentiaDone
R

Parameters ​

ParameterType
selfContentiaStream<A, D, R>

Returns ​

Effect<D, ContentiaError<ErrorCode, number>, R>