how to make async tesk in kotlin?
# getting-started
m
how to make async tesk in kotlin?
h
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
Use:
Copy code
runBlocking {

   // Call your suspending functions here

}
// All suspending functions are guaranteed to have finished here
👍 1
I assumed you meant ‘test’