Can I suspend get the value by `SharedFlow` (repla...
# coroutines
s
Can I suspend get the value by
SharedFlow
(replay is 1) like
Channel::receive
? for example:
Copy code
suspend fun generateSomething() : String {
    val result = _channel.receive() // Change Channel to SharedFlow
    return "Result is $result"
}
e
a
I’d say simple
flow.first()
should also work
🙌 3