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 Parameter | Default type |
|---|---|
A | - |
R | never |
Parameters
| Parameter | Type |
|---|---|
build | (emit) => Effect<A, ContentiaError<ErrorCode, number>, R> |
options? | { capacity?: number; } |
options.capacity? | number |
Returns
ContentiaTask<A, R>