does `Channel.offer` on a `RendezvousChannel` alw...
# coroutines
k
does
Channel.offer
on a
RendezvousChannel
always return false? Or will it return true if a receiver is already waiting for the next value?
o
Copy code
suspend fun main() {
    val channel = Channel<String>(Channel.RENDEZVOUS)
    coroutineScope {
        launch(start = CoroutineStart.UNDISPATCHED) {
            println(channel.receive())
        }
        println("Offer returns: " + channel.offer("Hello!"))
    }
}
=
Copy code
Offer returns: true
Hello!
k
thanks!