SoloDeadlineEvent

sealed interface SoloDeadlineEvent

What happened to a session that started out with nobody else in it.

A SoloDeadlineDetector emits exactly one of these, ever: either somebody showed up in time (Paired) or nobody did (NeverPaired).

Inheritors

Types

Link copied to clipboard
data class NeverPaired(val observed: Int, val required: Int, val at: Instant) : SoloDeadlineEvent

Membership stayed below the minimum for the whole deadline — nobody ever joined.

Link copied to clipboard
data class Paired(val at: Instant) : SoloDeadlineEvent

Membership reached the minimum before the deadline elapsed; the detector disarms permanently and will never emit again.

Properties

Link copied to clipboard
abstract val at: Instant

When the outcome was decided, read from the detector's injected clock.