Do you mean AsyncTask class in Android? That was deprecated in Android 11(API 30). If you want to use alternative, just use coroutines, more concise and simple.
w
Werner Altewischer
07/23/2021, 8:49 AM
Use:
Copy code
runBlocking {
// Call your suspending functions here
}
// All suspending functions are guaranteed to have finished here