Pacane
06/11/2020, 4:45 PMsupervisorScope and pass it a parent supervisorJob? From the docs it says I can, but I don't see how I can pass it downZach Klippenstein (he/him) [MOD]
06/11/2020, 4:52 PMsupervisorScope, but i would expect it would follow the pattern of coroutineScope in which case the child context’s job will be a child of the parent context’s job.octylFractal
06/11/2020, 4:57 PMCoroutineScope(SupervisorJob()), otherwise, it will create a child Job of the suspend context that you call it withbdawg.io
06/11/2020, 4:58 PMsupervisorScope { } as a context function uses the current context to get the parent job always. Otherwise, you can use the CoroutineScope factory function passing the desired or new SupervisorJob (ie, CoroutineScope(SupervisorJob()))