nwh
11/03/2018, 12:13 AMsuspend
function, shouldn't the current CoroutineScope
be accessible? Since it had to be invoked from some type of scope?louiscad
11/03/2018, 12:21 AMcoroutineScope { … }
. Does this fit your use case?nwh
11/03/2018, 12:27 AMCoroutineScope
basically just a fancy Job
with a bundled context for convenience?louiscad
11/03/2018, 1:07 AMJob
is actually part of the coroutineContext
that the scope providesMark
11/03/2018, 3:15 AMcoroutineContext
provided by the coroutineScope{}
is the same as the coroutineContext
used to call the suspending function, and the Job
is a child of the Job
representing the call the suspending function?louiscad
11/03/2018, 7:32 AMDico
11/03/2018, 12:57 PMCoroutineContext
in the place of CoroutineScope
. But it makes sense, you can't just add scopes together and stuff.nwh
11/04/2018, 1:30 AMCoroutineContext
and CoroutineScope
- I get the technical difference, but not in practiceMark
11/04/2018, 2:19 AMDALDEI
11/04/2018, 5:16 AMDALDEI
11/04/2018, 5:18 AM