Skip to content

TypeScript API / contentia/core / ContentiaTask / make

Function: make() ​

ts
function make<A, R>(build, options?): ContentiaTask<A, R>;

Generator-style builder for arbitrary ContentiaTasks. The builder receives a metadata-only emit API and returns an Effect that resolves to the value (which becomes the task's terminal return value).

Type Parameters ​

Type ParameterDefault type
A-
Rnever

Parameters ​

ParameterType
build(emit) => Effect<A, ContentiaError<ErrorCode, number>, R>
options?{ capacity?: number; }
options.capacity?number

Returns ​

ContentiaTask<A, R>