leave
Leave the room cleanly. Idempotent.
A room that has left has no members, on either role. Its roster reads empty, each of its channel views lists only this peer and reads us.tractat.kuilt.core.SeamState.Torn, and every incomingFrom flow completes. The Torn is how a consumer holding only a channel view learns the room has ended, including a view it first asks for after the leave. The roster empties first, so a reader that sees its flow complete already reads the empty roster. That keeps one inference sound: a member's flow completed while the member is still listed means a newer admission, never the end of this room. No MembershipEvent.Left is emitted for those members, because none of them left; this room stopped.
A leave failure must not be reported as a cancellation — the obligation us.tractat.kuilt.core.Seam.close states in full (#1826). A host calls this from a teardown path that is itself usually already cancelled, under a best-effort guard, so a callee-minted CancellationException here costs that host the rest of its cleanup rather than failing one leave.
Leaving does not wait for anything to drain. A frame an earlier sendTo or broadcast accepted can still be queued on this device, and the transport can close under it. To send a last frame and then leave, call flush first.