EventSubscription
open class EventSubscription : Disposable, AutoCloseable, 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.
Functions
| Name | Summary |
|---|---|
| cancel | open override fun cancel() Cancel the subscription, dropping the connection and unblocking a pending next. |
| close | @Synchronized open override fun close() |
| destroy | open override fun destroy() |
| isCanceled | open override fun isCanceled(): Boolean Whether the subscription has been canceled. |
| next | open suspend override fun next(): EventUpdate? Wait for the next update. |