what is the difference between ```suspend fun x() ...
# coroutines
b
what is the difference between
Copy code
suspend fun x() = delay(200)
and
Copy code
suspend fun x() = coroutineScope { delay(200) }
1
j
There should be no apparent difference.
coroutineScope { ... }
is only useful if you need to start new coroutines.
b
so when I need access to async or launch inside the suspend fun?
j
yes, for instance
b
thanks