EventSubscription

data class EventSubscription<EVENT, CHECKPOINT : Checkpoint>(val batches: ReceiveChannel<List<SubscriptionEvent<EVENT, CHECKPOINT>>>, val status: StateFlow<EventSubscriptionStatus>, awaitTermination: suspend () -> Unit = {})(source)

Constructors

Link copied to clipboard
constructor(batches: ReceiveChannel<List<SubscriptionEvent<EVENT, CHECKPOINT>>>, status: StateFlow<EventSubscriptionStatus>, awaitTermination: suspend () -> Unit = {})

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
suspend fun cancelAndJoin()

Cancels delivery and joins the backend producer, including its cleanup.