Thiyagu01/17/2020, 8:34 PM
Animesh Sahu01/18/2020, 10:52 AM
That means instead of blocking we are doing some useful work in the same thread, which is in long term very efficient than that of blocking functions.
a client sent a request to a server and waiting for response, and you want some calculations going on at the same time, then if youre api is blocking you need a new thread for that calculation where as in coroutines you can do the calculation in behalf of the waiting time of the response.
Thiyagu01/18/2020, 5:30 PM
Animesh Sahu01/19/2020, 10:31 AM