How do I fix the deprecation warning in this code? Alternatively, are there any other options for doing this?
runOnUiThread {
doAsync {
// room insert query
}
}
// anko Commons
implementation "org.jetbrains.anko:anko-commons:0.10.8"