CLOVIS
08/24/2021, 10:17 AMJob
or a CoroutineScope
?
So far I've been adding Job
parameters, but then I have to declare another CoroutineScope
field per class.Zach Klippenstein (he/him) [MOD]
08/24/2021, 11:48 AMJob
param if you also have a CoroutineScope
param, but doing so probably makes your API more confusing because it’s not obvious how the explicit job and the job in the scope affect each other.andylamax
08/24/2021, 12:08 PMCoroutineScope
CLOVIS
08/24/2021, 3:02 PMJob
and when one should use CoroutineScope
. Do you know if there's a good article somewhere on that?Zach Klippenstein (he/him) [MOD]
08/24/2021, 3:20 PMCoroutineScope
since it allows the caller to customize not only the Job
but also any other aspects of the CoroutineContext
.Didier Villevalois
08/24/2021, 6:52 PMCoroutineContext
, is that bad ?Zach Klippenstein (he/him) [MOD]
08/24/2021, 6:53 PM