RaptorAggregateStream

Types

Functions

Link copied to clipboard
abstract suspend fun wait()

Properties

Link copied to clipboard
abstract val messages: Flow<RaptorAggregateStreamMessage<*, *>>

Extensions

Link copied to clipboard
suspend fun <Id : RaptorAggregateId, Change : RaptorAggregateChange<Id>> RaptorAggregateStream.subscribeIn(scope: CoroutineScope, collector: suspend (event: RaptorAggregateEventBatch<Id, Change>) -> Unit, errorStrategy: RaptorAggregateStream.ErrorStrategy = RaptorAggregateStream.ErrorStrategy.skip, changeClass: KClass<Change>, idClass: KClass<Id>, includeReplays: Boolean = false): Job
suspend fun <Id : RaptorAggregateId, Change : RaptorAggregateChange<Id>> RaptorAggregateStream.subscribeIn(scope: CoroutineScope, collector: suspend (event: RaptorAggregateEvent<Id, Change>) -> Unit, errorStrategy: RaptorAggregateStream.ErrorStrategy = RaptorAggregateStream.ErrorStrategy.skip, changeClass: KClass<Change>, idClass: KClass<Id>, includeReplays: Boolean = false): Job
inline suspend fun <Id : RaptorAggregateId, Change : RaptorAggregateChange<Id>> RaptorAggregateStream.subscribeIn(scope: CoroutineScope, noinline collector: suspend (event: RaptorAggregateEventBatch<Id, Change>) -> Unit, errorStrategy: RaptorAggregateStream.ErrorStrategy = RaptorAggregateStream.ErrorStrategy.skip, includeReplays: Boolean = false): Job
inline suspend fun <Id : RaptorAggregateId, Change : RaptorAggregateChange<Id>> RaptorAggregateStream.subscribeIn(scope: CoroutineScope, noinline collector: suspend (event: RaptorAggregateEvent<Id, Change>) -> Unit, errorStrategy: RaptorAggregateStream.ErrorStrategy = RaptorAggregateStream.ErrorStrategy.skip, includeReplays: Boolean = false): Job