Skip to content
PACKAGES

Pausable

Kind: class

Source: src/graphrefly/_modules.py:84

Pausable(node: Node[Any], control: PauseControl)

A pausable node and the control of its lock state.

NameTypeDescription
nodeNode[Any]
controlPauseControl
locksState[Any]The lock state: a list of the locks held.
pause(lock: str | None = None) -> str

Take a lock; see :meth:PauseControl.pause.

Source: src/graphrefly/_modules.py:97

resume(lock: str) -> None

Release a lock; see :meth:PauseControl.resume.

Source: src/graphrefly/_modules.py:102