EventSubscriptionInterface
interface EventSubscriptionInterface
A live subscription.
Call next in a loop to receive updates; it only returns None once cancel has been called, since the subscription itself never ends.
Inheritors
| EventSubscription |
Functions
| Name | Summary |
|---|---|
| cancel | abstract fun cancel() Cancel the subscription, dropping the connection and unblocking a pending next. |
| isCanceled | abstract fun isCanceled(): Boolean Whether the subscription has been canceled. |
| next | abstract suspend fun next(): EventUpdate? Wait for the next update. |