Felix
10/31/2018, 9:00 PMCoroutineScope(coroutineContext).launch {...}
.
1) Is there a better way?
2) Is this a bad practice?elizarov
11/01/2018, 4:59 AMGlobalScope.launch
. However, much better and recommended approach is to actually think about that, figure out what scope in your application naturally controls your coroutine and explicitly use that scope.coroutineScope { ... }
always when you want to run some concurrent subtasks.CoroutineScope
.