I am manually creating “scope1” and “scope2", with...
# coroutines
d
I am manually creating “scope1” and “scope2", with “Job()” and the same coroutine name.
Copy code
val scope1 = CoroutineScope(Job() + "myscope")
val job1 = scope1.launch { … }

val scope2 = CoroutineScope(Job() + "myscope")
val job2 = scope2.launch { … }
Are “scope1" and “scope2” actually the same scope, or are they different?
e
Different. Names is just used for debbuging. There's no global map or anything like that.
👍 5