Ivan Pavlov
private val eventFlow = MutableSharedFlow<BotStatusChangeEvent>() override val events: Flow<Event> = eventFlow override fun sendEvent(event: Event) { coroutineScope.launch { eventFlow.emit(event) } }
sendEvent(Event(1)) sendEvent(Event(2)) sendEvent(Event(3))
events
dave08
A modern programming language that makes developers happier.