Skip to content

TypeScript API / contentia/core / ContentiaTask / runValue

Function: runValue() ​

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

Drain a ContentiaTask ignoring metadata; return only the resolved value.

Use in non-delegation contexts (test code, top-level runners) where the caller genuinely doesn't care about recoverable warnings or progress. When the caller is itself a ContentiaTask.make body delegating to another task, use runValueForwarding instead — otherwise the inner task's recoverable warnings die at the delegation boundary.

Type Parameters ​

Type Parameter
A
R

Parameters ​

ParameterType
selfContentiaTask<A, R>

Returns ​

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