Vikas Singh
06/14/2021, 10:56 AMmbonnin
06/14/2021, 11:00 AM/**
* Adds the specified coroutine context to this scope, overriding existing elements in the current
* scope's context with the corresponding keys.
*
* This is a shorthand for `CoroutineScope(thisScope + context)`.
*/
public operator fun CoroutineScope.plus(context: CoroutineContext): CoroutineScope =
ContextScope(coroutineContext + context)
CoroutineScope.kt
in the coroutines repo, you'll find itCoroutineScope(<http://Dispatchers.IO|Dispatchers.IO>)
will add a Job by default so you can leave out the Job in all casesDominaezzz
06/14/2021, 11:58 AMVikas Singh
06/14/2021, 1:00 PM