julioyg
11/05/2018, 11:48 AMfun doSomeStuff() : Deferred<String> = async { /*doing something*/}
, should that be an extension function of a coroutineContext
as it starts a coroutine?gildor
11/05/2018, 11:56 AMjulioyg
11/05/2018, 1:52 PMsuspend fun doSomeStuff() = withContext {}
be better, that doesn't launch a coroutine but changes the context of the existing one, right?gildor
11/05/2018, 3:53 PMjulioyg
11/05/2018, 3:59 PM