Core Result
15 symbolsRepresents a value that may be returned directly or through a Promise.
Creates a branded failed result.
Converts a structural result-like value into a branded Flow result.
Narrows a result to the failed variant.
Narrows a result to the successful variant.
Exhaustively handles both result variants and returns one value.
Creates a branded successful result.
Explicit success-or-failure outcome used throughout Flow.
Namespace-style collection of core result helpers.
Structural result shape accepted by `from`.
Returns the success value or throws the error value.
Returns the success value or a fallback.
Core Runtime
22 symbolsAborts a controller only when it has not already been aborted.
Executable Flow workflow unit.
Extracts the custom context type from a behavior.
Extracts the expected domain error type from a behavior.
Extracts the output type from a behavior.
Creates a cancellation result.
Replaces the signal on a runtime context.
Creates a child controller linked to a parent signal.
Narrows an error value to `Cancelled`.
Narrows an error value to a Flow runtime error.
Links a parent signal to a child controller.
Converts an aborted signal into a cancellation result.
Runs a behavior with an optional application context.
Executes a behavior with runtime error protection.
Execution context passed to every behavior.
Runtime-level failure union added around every behavior's domain error type.
Core Record
18 symbolsAborts every tracked child controller.
Behavior shape accepted by keyed record helpers.
Object map of named behaviors for `all`, `allSettled`, and `race`.
Domain error returned when `race` is called with an empty behavior record.
Re-exports core result helpers used by advanced record internals.
Unions the expected domain error types of every behavior in a record.
Normalizes a requested concurrency value for keyed parallel helpers.
Re-exports core result helpers used by advanced record internals.
Maps each behavior key to its successful output type.
Creates a keyed race failure payload.
Keyed success value returned by `race`.
Creates a keyed race success payload.
Intersects the custom context types of every behavior in a record.
Intersects the input types of every behavior in a record.
Runs a child behavior with a linked abort controller.
Maps each behavior key to the full result returned by that child.
Re-exports core result helpers used by advanced record internals.
Composition
10 symbolsCreates a behavior that always fails with the same domain error.
Creates an identity behavior for starting typed pipelines.
Maps the successful output of a behavior.
Runs two behaviors left-to-right.
Creates a behavior that always succeeds with the same value.
Runs a side effect after source success without changing the output.
Runtime context provided to a `task` callback.
Error Handling
3 symbolsRecovers one discriminated domain error variant by its `kind` field.
Maps expected domain errors without catching runtime errors.
Recovers expected domain failures into success or a new domain failure.
Timing And Cancellation
8 symbolsWaits before running a source behavior.
Configuration for retrying expected domain failures.
Runs one behavior execution with a timeout.
Domain error returned when a timeout expires before source completion.
Waits for a duration while observing an `AbortSignal`.
Branching
2 symbolsParallel Execution
3 symbolsRuns keyed behaviors in parallel and fails fast on the first child failure.
Runs keyed behaviors and collects every child result.
Runs keyed behaviors and returns the first settled child.