it seems to have been something in ktor-client-okH...
# coroutines
n
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
It’s just OkHTTP itself. Whenever you use its async mechanism, it doesn’t close down immediately
g
OkHttp default thread pool creates threads and caches them for 60 seconds. You can change to daemon threads
n
@gildor how do i configure that in the ktor-http client ? any pointers ?
b
#squarelibraries might be able to help
g
@Nikky this is OkHttp API, so just set custom dispatcher using
.dispather()
method of OkHttpiebt.Builder
You can configure it using OkHttpConfig API of ktor client