Skip to content
PACKAGES

PauseControl

Kind: class

Source: src/graphrefly/_modules.py:55

PauseControl(locks: State[Any])

A lock state and the handle that changes it: each pause or resume is a set with a function, so the lock state is the only copy of the locks.

NameTypeDescription
locksState[Any]
pause(lock: str | None = None) -> str

Take lock (a fresh one if none is given) and return it.

Source: src/graphrefly/_modules.py:62

resume(lock: str) -> None

Release lock; releasing one not held writes nothing.

Source: src/graphrefly/_modules.py:74