irus
05/28/2019, 7:43 PMrusshwolf
05/28/2019, 9:03 PMclient.use { ... }
instead of client.also { ... }
. That will call close()
automatically.irus
05/28/2019, 9:11 PMclose
method not calling on Engine
in both version, code which create AsyncHttpClient is the same. I have no idea what to check alsoe5l
05/29/2019, 7:41 AMrunBlocking
if some connection is still active. Probably the validate method doesn’t close the response.irus
05/29/2019, 2:28 PMfun main() {
val client = AppStoreClient("...", "...")
runBlocking {
println(client.validate("..."))
}
println("Done")
}
In this case Done
will be printed, but JVM:
1. ktor-client:1.1.1 - stopped
2. ktor-client 1.2.1 - keep running