Hello. At what application layer do you convert `D...
# android
d
Hello. At what application layer do you convert
Deferred
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 ­čĄĚ