CamilleBC
12/05/2018, 10:33 AMonResponse ? Should I:
* pass a callback and send the data back through it?
* use the https://github.com/gildor/kotlin-coroutines-retrofit library?
* pass a LiveData as parameter to the call function and post the value to it?gildor
12/05/2018, 10:34 AMgildor
12/05/2018, 10:34 AMCall<T> type
Soon Retrofit will support suspend functions out of the boxCamilleBC
12/05/2018, 10:36 AMgildor
12/05/2018, 10:37 AMgildor
12/05/2018, 10:37 AMgildor
12/05/2018, 10:38 AMCall<T> and my library
Or you can use Deffered<T> and this library
https://github.com/JakeWharton/retrofit2-kotlin-coroutines-adapterCamilleBC
12/05/2018, 10:39 AMCamilleBC
12/05/2018, 10:39 AMCamilleBC
12/05/2018, 10:40 AMgildor
12/05/2018, 10:40 AMgildor
12/05/2018, 10:40 AMCamilleBC
12/05/2018, 10:41 AMgildor
12/05/2018, 10:41 AMgildor
12/05/2018, 10:42 AMCamilleBC
12/05/2018, 10:42 AMCamilleBC
12/05/2018, 10:42 AMgildor
12/05/2018, 10:44 AM