Skip to content
PACKAGES

async_node

Kind: function

Source: src/graphrefly/_async.py:832

async_node(graph: Graph, deps: Iterable[Node[Any]], runner: AsyncRunner, callback: Callable[..., Awaitable[T]], *, name: str | None = None)

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.