spand
05/24/2018, 9:11 AMlaunch
and friends without giving the explicit context that I actually intend to. How do you guys avoid this ?gildor
05/24/2018, 11:24 AMspand
05/24/2018, 1:40 PMgildor
05/25/2018, 2:01 AMspand
05/25/2018, 7:14 AMgildor
05/25/2018, 7:29 AMspand
05/25/2018, 7:36 AMgildor
05/25/2018, 7:46 AMspand
05/25/2018, 7:47 AMlaunch
and friends ought to use their parent context if they are called from another coroutine and only the calls that initiate a graph of coroutines should use these with a default contextgildor
05/25/2018, 9:06 AMThere is only launch, await and withContext, and only launch and await have default context, just because it’s impossible to run them without dispatcher, withContext by default use parent joband friendslaunch
Vsevolod Tolstopyatov [JB]
05/25/2018, 9:17 AMlaunch
and async
(and other builders) and making them extensions functions on something like CoroutineContext
(actually, on ParentJobHolder
, because it’s mainly about parent inheritance rather than about dispatcher).spand
05/25/2018, 9:29 AM