Matthias Geisler
02/10/2022, 10:08 PMfun randomFunction() {
val channel = Channel<String>()
val lambda = suspend {
channel.send("abc")
}
runBlocking(randomContext) {
lambda()
println(channel.receive())
}
}
Sam
02/10/2022, 10:19 PMsend
will suspend until something receives the item. It would happen even without the lambda.Matthias Geisler
02/10/2022, 10:27 PM