Skip to content
Developer Preview

SyncTurn

One turn, on the blocking surface — the sync twin of Turn.

Class in muse_code

SyncTurn(turn: Turn, runner: _LoopRunner)

Property Type Description
turn_id str The wire turn id.
observed_start bool Did THIS session observe a turn/started? Not a launch marker.
Method Signature Description
completed completed() -> TurnOutcome Block for the turn-wait; settles on a server-authored fact (a method where the async twin is an awaitable property — a blocking property read would hide an unbounded wait behind attribute access).
items items() -> Iterator[FoldedItem] This turn’s items, iterated synchronously: the folded backlog, then the live tail, ending when the turn settles.
deltas deltas() -> Iterator[ItemDeltaParams] This turn’s item/delta frames, live only, iterated synchronously; released on break/close (and bounded on a never-started iterator) exactly like items.
Source

clients/sdk-py/src/muse_code/sync_facade.py:420