Skip to main content

package @rimbu/task

The @rimbu/task package provides a lightweight, type‑safe abstraction for asynchronous tasks, offering structured concurrency, cancellation, retries, timeouts and composition utilities on top of plain Promise workflows. Use it to build composable async flows (sequential, parallel, competitive) with clear supervision semantics and cancellable jobs, and combine it with @rimbu/task/ops for higher‑level operators. See the package README and the Task API docs for details.

Namespaces

NameDescription
TaskA unit of work that can be executed within a Task Context.

Classes

NameDescription
CancellationErrorError thrown when a Task is cancelled.
RetryExhaustedErrorError thrown when the retry limit for a Task is reached.
TimeoutErrorError thrown when a Task exceeds its allowed execution time.