Skip to content
PACKAGES

operators.valve

Kind: function

Source: src/graphrefly/operators/_gate.py:45

valve(g: Graph, src: Node[Any], control: Node[Any], *, name: str | None = None)

Send src’s DATA while control’s value is True and drop it otherwise; it starts closed, and reopening replays nothing (O-valve).

The behavior is the root’s operator contract: the operator contracts.