package app.klottr.events import kotlinx.coroutines.flow.MutableSharedFlow import kotlinx.coroutines.flow.SharedFlow object FoundEvents { private val _foundUpdated = MutableSharedFlow(extraBufferCapacity = 8) val foundUpdated: SharedFlow = _foundUpdated private val _locationTick = MutableSharedFlow(extraBufferCapacity = 8) val locationTick: SharedFlow = _locationTick fun notifyFoundUpdated() { _foundUpdated.tryEmit(Unit) } fun notifyLocationTick() { _locationTick.tryEmit(Unit) } }