When I want a function to run few coroutines in it...
# coroutines
d
When I want a function to run few coroutines in it I do
Copy code
fun test() = coroutineScope { 
   launch()
   launch() 
}
is using
Copy code
fun test() = withContext(...) { 
  launch()
  launch()
}
equivalent to that? apart from the part where you need to pass some context element in it
g
yes, it’s mostly the same
and has the same semantics in terms of child coroutines
d
ah! thank you