v0ldem0rt
03/28/2019, 3:11 PMCoroutineScope(<http://Dispatchers.IO|Dispatchers.IO>).async {
// Do some work
}
Would this link the scope that I just created to parent scope (i.e. would parent wait)ahulyk
03/28/2019, 3:13 PMlaunch {
val data = async(IO) {
dataRepository.getData()
}
data.await()
}
streetsofboston
03/28/2019, 3:17 PMasync(context = <http://Dispatchers.IO|Dispatchers.IO>) {
// Do some work
}
v0ldem0rt
03/28/2019, 3:18 PMGlobalScope.async
. I am trying to make it behave like GlobalScope
gildor
03/28/2019, 3:33 PMv0ldem0rt
03/28/2019, 3:59 PM