Jiri Malina
04/05/2019, 10:14 AMbackgroundDispatcher + job
and pass it into the component and I run GlobalScope.launch(context). Will job.cancel()
cancel it?aballano
04/05/2019, 11:01 AMsergio250
04/05/2019, 12:35 PMjob.cancel()
at the end of your lifecycle
b) According to the documentation on CoroutineScope.launch
yes, the input context will override the one in `GlobalScope`: The parent job is inherited from a [CoroutineScope] as well, but it can also be overridden with corresponding [coroutineContext] element.
Jiri Malina
04/05/2019, 12:40 PM