Task
Task<
A> = () =>Promise<A>
Defined in: Core/Task.ts:25
A lazy async computation that always resolves.
Two guarantees:
- Lazy — nothing starts until you call it.
- Infallible — it never rejects. If failure is possible, encode it in the
return type using
TaskResult<E, A>instead.
Type Parameters
Section titled “Type Parameters”A
Returns
Section titled “Returns”Promise<A>