Skip to main content

TransactionSubscription

open class TransactionSubscription : Disposable, AutoCloseable, TransactionSubscriptionInterface

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

NameSummary
cancelopen override fun cancel()
Cancel the subscription, dropping the connection and unblocking a pending next.
close@Synchronized
open override fun close()
destroyopen override fun destroy()
isCanceledopen override fun isCanceled(): Boolean
Whether the subscription has been canceled.
nextopen suspend override fun next(): TransactionUpdate?
Wait for the next update.