withoutclass12/05/2018, 6:56 PM
, sending is always suspended waiting on a receiver, but
does not get suspended(blocked). As far as I can tell, both method 1 and method2 would launch using the same dispatcher (Dispatchers.IO), and that I'm not doing anything "wrong" per se, but clearly I am given I would expect
to not get stuck.
, the code does not block execution. If I use
, the code does not block execution.
, given it uses parent context and dispatcher without actually blocking the execution of the function launching it
uli12/06/2018, 11:08 AM
to complete. Only then will method2 return the
will not complete until there is a recever...
withoutclass12/06/2018, 3:08 PM
calls launch child coroutines using
or 2. Providing the channel to the
call instead of having the
return a new channel
should just be producers from a design perspective?