gildor / kotlin-coroutines-retrofit

Kotlin Coroutines await() extension for Retrofit Call
Apache License 2.0
847 stars 64 forks source link

No response coming back #33

Closed DFreds closed 6 years ago

DFreds commented 6 years ago

I'm trying to get a token but nothing is happening. Here is my code:

fun handleLogin() {
        println("about to get token")
        launch {
            print("getting token")
            val token = service.getToken(code = code, verifier = verifier).await()
            print("token is $token")
        }
}

It prints out the "about to get token" but never prints out the "getting token" nor the "token is $token". I know it's not Retrofit because it works when I use the basic enqueue functionality. Any ideas?

gildor commented 6 years ago

@DFreds Did you resolve your issue? Maybe application finished before launch started

DFreds commented 6 years ago

Yeah, all fixed. It was on my end. Thanks!