Hello, how i can do something like that ``` suspen...
# coroutines
a
Hello, how i can do something like that
Copy code
suspend fun test() {
async {  someWork()  }
}
How call async inside suspend fun?
g
use coroutineScope function
Copy code
suspend fun test() {
 coroutineScope {
    async {  someWork()  }
  }
}
But your and my sample actually incorrect, you should do something with result of this async, otherwise it useless
a
That example for simplicity. In my code i processed result) Thanks!
g
Do you run multiple async in parallel?
a
yes, i start multiple async from list, something like
Copy code
list.map { async {  convert()  }  }.awaitAll()
and after work with that in usual way
g
Right