david.bilik
12/17/2018, 4:28 PMDeferred
Retrofit callback to suspend function? In our app we have Fragment - ViewModel - Repository - Api - RetrofitInterface layers and I call await()
immediately in Api layer.. but I dont know if its a good practice or I should call it when I need it and return from all of this layers Deferred
type. On the other hand, I think its best to have suspend functions in all layers and get rid of Deferred
asap 🤷