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:91
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 — Type: tuple[CleanupEmitter, Ellipsis]
-
exception_targets — Type: tuple[ExceptionTarget, Ellipsis]
-
loops — Type: tuple[LoopTargets, Ellipsis]
-
restore_depth — Type: int | None
Methods
- __init__ —