Skip to content
PACKAGES

from_awaitable

Kind: function

Source: src/graphrefly/_async.py:740

from_awaitable(graph: Graph, runner: AsyncRunner, factory: Callable[[], Awaitable[T]], *, name: str | None = None)

Create a source from a fresh awaitable produced on each activation.

Its default local name is fromAwaitable with a numeric suffix when occupied.

It sends the awaited value and COMPLETE in one array, or ERROR. Its lifetime’s close cancels the job.