dave08
10/21/2018, 12:25 PMthevery
10/21/2018, 12:51 PMdave08
10/21/2018, 12:54 PMjw
10/21/2018, 1:39 PMdave08
10/21/2018, 1:41 PMval readChannel = response.call.receive<ByteReadChannel>()
val inputStream = response.call.receive<InputStream>() Remember that InputStream API is synchronous!
Sounds like readChannel
is async...jw
10/21/2018, 1:43 PMjw
10/21/2018, 1:46 PMdave08
10/21/2018, 1:48 PMOutgoingContent
... so there's still a bit of hope that it's async, I don't see the response code there...dave08
10/21/2018, 1:49 PMgildor
10/22/2018, 5:29 AMthat it’s asyncIt is async of course. Are you talking about syncronous/asyncronous or about blocking/non-blocking? Because Ktor uses syncronous blocking API of OkHttp (it doesn’t have any non-blocking one) that blocking but on own thread pool, but this API wrapped to asyncronous coroutines
dave08
10/22/2018, 6:24 AM