Anyone have articles/docs/samples of using OkHTTP/other network requests with coroutines? I'm trying to make a simple application that calls out to HTTPBin as a producer and sends the UUID responses back through a channel.
t
tseisel
08/11/2019, 9:06 AM
You can use Ktor Client library : it wraps an HTTP engine (OkHttp, Apache, cURL ...) with a common HttpClient API with suspending fonctions.
Why do you want to use a Channel for receiving the response ?