TypeScript API / contentia/core / ContentiaTask / runValueForwarding
Function: runValueForwarding()
ts
function runValueForwarding<A, R>(self, emit): Effect<A, ContentiaError<ErrorCode, number>, R>;Drain a child ContentiaTask, forwarding every recoverableError and progress event to the given outer emit, and return the resolved value. Use this when a higher-level repository delegates to a lower-level one and wants the inner repo's warnings to flow through its own outer task — otherwise the lower-level's recoverableErrors die at the boundary because runValue discards metadata.
Type Parameters
| Type Parameter |
|---|
A |
R |
Parameters
| Parameter | Type |
|---|---|
self | ContentiaTask<A, R> |
emit | ContentiaMetadataEmit |
Returns
Effect<A, ContentiaError<ErrorCode, number>, R>