ResumeResult

sealed interface ResumeResult

What a host's JoinerReconnectController.tryResume decided about its own window state.

HostVerdict is the half a consumer meets: a hold policy returns one. It never leaves the host as a value: the room acts on it, restoring the seat or releasing it.

A joiner's reconnect has outcomes of its own that no host renders: silence, and a room that is already over. Those are JoinerOutcome, which is internal. Since a return became a Hello (#3159) no public call hands a consumer one; the room's events say how a return went. Success and WindowClosed are on both sides, as the same values.

Why the split is typed rather than documented. Both halves used to be one type, so a when over a joiner's outcome could carry arms for host verdicts it can never receive. It compiled, so nothing caught it; narrowing the two types makes that same when a compile error (#2364).

Inheritors

Types

Link copied to clipboard
sealed interface HostVerdict : ResumeResult

The half a host renders: what JoinerReconnectController.tryResume decided about its own window state.

Link copied to clipboard

The seat was held and has come back: the same membership.

Link copied to clipboard

There is no window to resume onto: the window for this peer elapsed, or was already spent on a restore. Terminal — no later attempt can restore this seat. Distinct from WindowNotYetOpen, which looks identical from the outside but is transient (#1572).

Link copied to clipboard

No window has opened for this peer yet.