Should I use `Channel(capacity = UNLIMITED)` + `of...
# coroutines
l
Should I use
Channel(capacity = UNLIMITED)
+
offer(...)
or a rendez-vous
Channel()
+
launch { send(...) }
?
v
If you are using it from non-suspending context,
offer
is faster because it doesn’t require context (thread) switch (which
launch
usually implies)
l
Great, thank you!