Statistics Config Scope
StatisticsConfigScope - Creating StatisticsConfig with Kotlin DSL style.
Constructors
Properties
coroutineContext - context of coroutine for statistics.
defaultCollector - println base statistics to console if enableDefaultCollector is true.
enableDefaultCollector - flag for turn on defaultCollector, true for default.
extraBufferCapacity - the number of values buffered in addition to replay. Emit does not suspend while there is a buffer space remaining (optional, cannot be negative, defaults to zero).
Creates a new MutableSharedFlow for StatisticNote with StatisticsConfig params.
Optimization flag for statistics. Default is false.
Creates a new CoroutineScope with SupervisorJob and StatisticsConfig.coroutineContext
onBufferOverflow - configures an emit action on buffer overflow. Optional, defaults to suspending attempts to emit a value. Values other than BufferOverflow. SUSPEND are supported only when replay 0 or extraBufferCapacity 0. Buffer overflow can happen only when there is at least one subscriber that is not ready to accept the new value. In the absence of subscribers only the most recent replay values are stored and the buffer overflow behavior is never triggered and has no effect.