Join Slack
Powered by
it seems to have been something in ktor-client-okH...
# coroutines
n
Nikky
09/23/2018, 6:47 PM
it seems to have been something in ktor-client-okHttp taking its time to shut down which holds back the main function from closing
b
bdawg.io
09/23/2018, 10:43 PM
It’s just OkHTTP itself. Whenever you use its async mechanism, it doesn’t close down immediately
g
gildor
09/24/2018, 1:13 AM
OkHttp default thread pool creates threads and caches them for 60 seconds. You can change to daemon threads
n
Nikky
09/24/2018, 11:41 AM
@gildor
how do i configure that in the ktor-http client ? any pointers ?
b
bdawg.io
09/24/2018, 1:16 PM
#squarelibraries
might be able to help
g
gildor
09/24/2018, 1:39 PM
@Nikky
this is OkHttp API, so just set custom dispatcher using
.dispather()
method of OkHttpiebt.Builder
gildor
09/24/2018, 1:42 PM
You can configure it using OkHttpConfig API of ktor client
6
Views
Open in Slack
Previous
Next