Is it possible somehow with Kotlin coroutines to do a behaviour like:
a request(r1) comes to server, this request is handled in a thread from thread pool,
server does some work in that thread, after this server make a request to remote server, at this moment this thread should be returned to thread pool to handle another request(r2),
after remote server returned a response, request(r1) should continue work from moment when was made a remote request
e
elizarov
02/02/2017, 3:35 PM
rrader: That's the primary use-case for coroutines (that is, that is exactly what they were designed for)