async_node
async_node
Section titled “async_node”Kind: function
Source: src/graphrefly/_async.py:832
Signature
Section titled “Signature”async_node(graph: Graph, deps: Iterable[Node[Any]], runner: AsyncRunner, callback: Callable[..., Awaitable[T]], *, name: str | None = None)Description
Section titled “Description”Create a value-level async compute node over declared dependencies.
Its default local name is asyncNode with a numeric suffix when occupied.
Each run on new values (derived’s gate) starts the callback; its result is a later wave. A completion of a superseded run is ignored (a generation fence), and the lifetime’s close cancels every run still going.