Hi i starting with kotlin, now Android Studio 3.0 support it, but i don't know how do a simple Network request in another thread...
in java is very easy
new Thread(new Runnable() {
@Override
public void run() {
//Do dome Network Request
runOnUiThread(new Runnable() {
@Override
public void run() {
//Update UI
}
});
}
}).start();
i know i can do a AsyncTask and blablabla... but i don't want that. I want a simple solution without creating extra classes and complex use case
Is this possible in Kotlin?