PauseControl
PauseControl
Section titled “PauseControl”Kind: class
Source: src/graphrefly/_modules.py:55
Signature
Section titled “Signature”PauseControl(locks: State[Any])Description
Section titled “Description”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.
Attributes
Section titled “Attributes”| Name | Type | Description |
|---|---|---|
locks | State[Any] |
Methods
Section titled “Methods”pause(lock: str | None = None) -> strTake lock (a fresh one if none is given) and return it.
Source: src/graphrefly/_modules.py:62
resume
Section titled “resume”resume(lock: str) -> NoneRelease lock; releasing one not held writes nothing.
Source: src/graphrefly/_modules.py:74