Thiyagu
01/17/2020, 8:34 PMAnimesh Sahu
01/18/2020, 10:52 AMa 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.
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.Thiyagu
01/18/2020, 5:30 PMAnimesh Sahu
01/19/2020, 10:31 AM