Skip to main content

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

NameSummary
cancelabstract fun cancel()
Cancel the subscription, dropping the connection and unblocking a pending next.
isCanceledabstract fun isCanceled(): Boolean
Whether the subscription has been canceled.
nextabstract suspend fun next(): EventUpdate?
Wait for the next update.