Android Dev
You can check on which thread each peace of code is running with println("Thread is ${Thread.currentThread().name}")
For Rx it would be 'Thread is RxComputationThreadPool-1' For Coroutines 'Thread is main'
As you can see Coroutines don't create any additional threads
You can check on which thread each peace of code is running with
println("Thread is ${Thread.currentThread().name}")
For Rx it would be 'Thread is RxComputationThreadPool-1'
For Coroutines 'Thread is main'
As you can see Coroutines don't create any additional threads