Rob
private val events: MutableSharedFlow<Unit> = MutableSharedFlow() fun foo(): Pair<String, String>? = null private suspend fun bar(): String = events .transform { emit( foo() ?.let { it.first } ?: return@transform ) } .first()
A modern programming language that makes developers happier.