operators.latest_async
operators.latest_async
Section titled “operators.latest_async”Kind: function
Source: src/graphrefly/operators/_async.py:237
Signature
Section titled “Signature”latest_async(g: Graph, src: Node[Any], f: Callable[[Any, Signal], Any], *, runner: AsyncRunner, name: str | None = None, recipe: Recipe | None = None)Description
Section titled “Description”Call f(value, signal) for the latest DATA of src and send the job’s one result
as a later wave; a newer input aborts the job before it (O-latestAsync,
https://github.com/graphrefly/graphrefly/blob/main/operators/README.md).
f returns an awaitable, which runner awaits, or a plain value, which is the result
itself. After the source’s COMPLETE the operator waits for its job and then completes; the
job’s failure ends it with an ERROR carrying the exception’s message. Given a recipe
that builds f, it can be restored.
The behavior is the root’s operator contract: the operator contracts.