If I have a multiple call with async await or laun...
# coroutines
p
If I have a multiple call with async await or launch if I don't want to fail if one fails I need to use supervisorScope or supervisorJob? What's the difference between them?
I know there's the supervisorJob that the child jobs inside can fail and it won't fail the parent one, but what's the difference with supervisorScope? When I can use it?
z
a “supervisor scope” is just a
CoroutineScope
whose job is a
SupervisorJob
p
Is there any recomendation to use one or the other? I see the point, but I can also create a SupervisorJob and use a normal CoroutineScope, no?
z
use whatever makes your code more readable