I\'m trying to update a list inside the adapter using async, I can see there is too much boilerplate.
Is it the right way to use Kotlin Coroutines?
can this
I think you can get rid of runOnUiThread { ... } by using UI context for Android applications instead of CommonPool.
runOnUiThread { ... }
UI
CommonPool
The UI context is provided by the kotlinx-coroutines-android module.