Skip to content

TypeScript API / laikacms/core / LaikaTask / make

Function: make() ​

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

Generator-style builder for arbitrary LaikaTasks. 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, LaikaError<ErrorCode, number>, R>
options?{ capacity?: number; }
options.capacity?number

Returns ​

LaikaTask<A, R>

Released under the MIT License.