GraphQlEventSubscription
open class GraphQlEventSubscription : Disposable, AutoCloseable, GraphQlEventSubscriptionInterface
A live subscription.
Call next in a loop to receive updates. It returns None once cancel has been called. If the indexer requires a newer SDK, next raises that error and the subscription ends: later calls return None. The subscription never ends otherwise.
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(): GraphQlEventUpdate? Wait for the next update. |