android-ktx icon indicating copy to clipboard operation
android-ktx copied to clipboard

Offer: AsyncTask replacement

Open mice777 opened this issue 7 years ago • 0 comments

I have created Kotlin replacement for Android's AsyncTask. It's well tested on few larger projects of mine, it works beautifully and would fit this library.

Example:

asyncTask({
  doSomething()
}){ result ->
  processResult(result)
}

It's cancelable, it has optional callbacks when it's done or canceled, it passes return value from async thread back to main thread.

If there is interest, I can create pull request with this functionality.

mice777 avatar Jul 02 '18 20:07 mice777