is it possible to get a channel to drop items (hav...
# coroutines
z
is it possible to get a channel to drop items (have
.offer(item)
return
false
) if no one is receiving?
d
Doesn't it? I misread that. Use 0 capacity channel
r
Umm well depends on the buffer size. Because unlimited and conflated will always return true.... But offer isnt a suspending function like send is it only returns false when it is impossible to do so.
So in other words, if the sender can suspend, than the offer can drop lol