https://kotlinlang.org logo
#coroutines
Title
# coroutines
k

kingsley

12/28/2017, 2:23 PM
Also. There is coroutines adapter that already supports coroutines natively with Retrofit https://github.com/JakeWharton/retrofit2-kotlin-coroutines-adapter
☝️ 3
k

Kirtan Thakkar

12/28/2017, 6:22 PM
Yes, true. But with this, you can use the type while enqueuing the call. Like your app already have it used in many places, but you can call the same API at one place with Await type or Deferred type whatever you prefer by using different enqueue functions for testing or gradually moving to Kotlin. You can have it at places whenever you need it and not at the whole app level.
4 Views