API reference
python:irx:irx.builder.state.PendingReturn
class PendingReturn
PendingReturn(actions: tuple[CleanupEmitter, ...], exception_targets: tuple[ExceptionTarget, ...], loops: tuple[LoopTargets, ...], restore_depth: int | None = None)
Source: packages/irx/src/irx/builder/state.py:87
Owned result and lexical boundaries of a suspended return.
Restore an affine source binding when cancellation stays inside its scope; otherwise release the abandoned result. Nested candidates remain independent until an actual return commits.
Attributes
-
actions — Actions.; Type: tuple[CleanupEmitter, ...]
-
exception_targets — Exception targets.; Type: tuple[ExceptionTarget, ...]
-
loops — Loops.; Type: tuple[LoopTargets, ...]
-
restore_depth — Restore depth.; Type: int | None
Methods
- __init__ —