Skip to main content

EventSubscriptionProtocol

EventSubscriptionProtocol

protocol EventSubscriptionProtocol : AnyObject, Sendable

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.