Skip to content

TypeScript API / contentia/core / ContentiaTask / runPromise

Function: runPromise() ​

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

Promise-shaped entry point for non-Effect consumers. Drops metadata; the returned Promise resolves with the value or rejects with the fatal ContentiaError (no Effect runtime imports required at the call site).

Type Parameters ​

Type Parameter
A

Parameters ​

ParameterType
selfContentiaTask<A>

Returns ​

Promise<A>