from_awaitable
from_awaitable
Section titled “from_awaitable”Kind: function
Source: src/graphrefly/_async.py:740
Signature
Section titled “Signature”from_awaitable(graph: Graph, runner: AsyncRunner, factory: Callable[[], Awaitable[T]], *, name: str | None = None)Description
Section titled “Description”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.