https://kotlinlang.org logo
#coroutines
Title
# coroutines
d

Daniele B

04/12/2021, 12:58 PM
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

elizarov

04/12/2021, 1:10 PM
Different. Names is just used for debbuging. There's no global map or anything like that.
👍 5
2 Views