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

elizarov

09/20/2018, 6:40 AM
@bj0 you don’t need an extra
coroutineScope
. The
launch
already provides one.
b

bj0

09/20/2018, 7:31 AM
Oh ok, I wasn't sure if the global
launch
waited for the inner `launch`es to complete or not
e

elizarov

09/20/2018, 11:56 AM
Every function that provides
CoroutineScope
is consistent in that it is waiting. The only exception is
currentScope
(and it might be a good resource to deprecate it)
b

bj0

09/20/2018, 4:22 PM
Ok, all that makes sense, but if all the builders include a
CoroutineScope
, what's the use-case of
coroutineScope
builder? I'm struggling to think of where I would use it instead of the current scope