Hi Guys! Is there any difference in following ship...
# coroutines
a
Hi Guys! Is there any difference in following shipnets:
Copy code
launch {
        val first = async(IO) {
            transactionDataRepository.getFist()
        }
        val second = async(IO) {
            transactionDataRepository.getSecond()
        }
    }
and
Copy code
launch {
            withContext(IO) {
                val first = async {
                    transactionDataRepository.getFist()
                }
                val second = async {
                    transactionDataRepository.getSecond()
                }
            }
        }
???
a
I believe they are equivalent, along with
Copy code
launch(IO) {
   async {
      ...
   }
   async {
      ...
   }
}
Though someone else may want to confirm