Is ``` private val mutableEvents = MutableShare...
# coroutines
t
Is
Copy code
private val mutableEvents = MutableSharedFlow<Event>()
    val events: SharedFlow<Event>
        get() = mutableEvents.asSharedFlow().onSubscription {
            if (something()) {
                emit(Event())
            }
        }
an efficient way to generate a sharedflow that can produce something on subscribtion only to new subscribers? Or is there better way?