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