async_context library

Async reactive context (docs/async.md).

A separate reactive surface for computations whose values are produced by async/future-returning functions. Exposes AsyncContext, AsyncCellHandle, AsyncSlotHandle, AsyncSlotState, AsyncEffectHandle, AsyncComputeContext.

Classes

AsyncCellHandle<T>
A mutable input cell on the async graph (the synchronous input layer of AsyncContext). Reads inside an async compute/effect register a dependency edge; writes invalidate dependents.
AsyncComputeContext
The compute context handed to an async callback: exposes getAsync and getCell that register dependency edges before the awaited read.
AsyncContext
The async reactive surface: a distinct graph with its own handles.
AsyncEffectHandle
Handle for an async effect returned by AsyncContext.effectAsync.
AsyncGraphNode
A node in an AsyncContext's graph (#lzspecedgeindex).
AsyncSlotHandle<T>
A computed async slot handle.
AsyncTeardownScope
A teardown scope over an AsyncContext: nodes created through it are disposed when it ends (#lzspecedgeindex).

Enums

AsyncSlotState
The finite-state-machine state of an async slot (docs/async.md ยง Async slot state machine).

Typedefs

Equals<T> = bool Function(T a, T b)
Equality predicate for memo guards.