core
Toggle table of contents
0.2.0
release
Target filter
release
Switch theme
Search in API
Skip to content
core
core
/
io.devconsole.core
/
EventBatchWriter
/
EventBatchWriter
Event
Batch
Writer
constructor
(
store
:
EventStore
,
scope
:
CoroutineScope
,
capacity
:
Int
=
DEFAULT_CAPACITY
,
maxBatchSize
:
Int
=
DEFAULT_BATCH_SIZE
,
flushIntervalMs
:
Long
=
DEFAULT_FLUSH_INTERVAL_MS
,
onDrop
:
(
StoredEvent
,
EventBatchDropReason
)
->
Unit
=
{ _, _ -> }
,
onStored
:
suspend
(
List
<
StoredEvent
>
)
->
Unit
=
{}
)