<@U0BRK9HC5> I'm playing around with retrofit coro...
# coroutines
k
@gildor I'm playing around with retrofit coroutines and I noticed that the following trivial program never terminates. any ideas?
Copy code
fun main(args: Array<String>) = runBlocking(CommonPool) {
    val result = service.someCall().awaitResponse()
    println(result)
}
g
kirillrakhman: Hmm, that’s really strange. I will check later.
k
should I create an issue for tracking it?
g
Yes, it would be nice
k
g
I couldn’t reproduce this issue unfortunately, could you check my comment and gist with code
j
really late on this, but i'm seeing this same issue
g
@joshr have you checked discussion on issue 14?
j
I haven't messed around with the threadpool stuff yet
interestingly though the last time I messed with this it wasn't 60 seconds, it was until I killed it myself
@kirillrakhman's simple suggestion of calling
System.exit
works for now
g
Anyway, I don't think that it is somehow related to coroutines, you can check the same code with Retrofit and Call API
j
i tried without coroutines (just the
Call<Foo>
without suspend) and it didn't happen
i also tried with just a plain old okhttp client and it didn't happen
but, admittedly, not a lot of science in my attempts