mayojava
11/06/2018, 7:50 PMsend call, since the size of the channel is 1 and there is no receiver
fun main() = runBlocking<Unit> {
val brod = BroadcastChannel<Int>(1)
for (i in 1..5) {
brod.send(5)
println("sent")
}
brod.close()
}
this code prints sent five times and completes and I am confused