This a PoC of how you can use Kotlin's Coroutines in order to perform multiple tasks in a background thread and wait for all to complete in order to update the UI in the UI thread.
ptsiogas4/KotlinCoroutineExample
This a PoC of how you can use Kotlin's Coroutines in order to perform multiple tasks in a background thread and wait for all to complete in order to update the UI in the UI thread.
Kotlin