Rodrigo Silva
02/08/2020, 9:38 PMAnimesh Sahu
02/09/2020, 5:46 AMsuspend fun main() = withContext(Dispatchers.Default) {
// put your main's stack here
// here you can call suspend funs
// and thread main is using when suspended
// other coroutine can work on it
// environment is reusable
}
Rodrigo Silva
02/09/2020, 2:46 PMlaunch {asynchronous fun}
Animesh Sahu
02/09/2020, 2:52 PMRodrigo Silva
02/09/2020, 2:53 PMRodrigo Silva
02/09/2020, 2:54 PMsuspend fun main
, ktor doesn't accept.