Skip to content

fontlabapp.glyphs.common.lifetime · declarations 001

Back to fontlabapp.glyphs.common.lifetime

FAILED module-attribute

FAILED

KEY module-attribute

KEY

current

current() -> Any

Return only this tool's active owner, if any.

pending

pending() -> dict[int, Held]

Read retained failed owners without implicitly retrying cleanup.

recover

recover(*, deadline: float, cancelled: Callable = lambda: False) -> tuple[Held, ...]

Retry retained owners under one deadline and return original receipts.

Failed/untouched owners remain retained. Aggregate failures expose any successful earlier receipts through recovered without discarding errors.

release

release(owner: Any) -> None

Release only this verified retired identity, preserving all other owners.

require_clear

require_clear() -> None

Refuse capture/allocation while a previous cleanup remains incomplete.

retain

retain(owner: Any, error: BaseException) -> None

Retain an owner and append the exact exception even after a timeout.

windows

windows() -> dict

Reuse the application script registry without touching another key.