With this we may be able to rethink the retrofit i...
# arrow-contributors
r
With this we may be able to rethink the retrofit integration to base it off suspend instead of callbacks https://twitter.com/JakeWharton/status/1176300676751798273?s=19
s
Using
suspend
with Arrow Fx is already possible today. This doesn’t require any integration anymore, right?
p
yep
r
I mean the current CallK uses callbacks in the integration and it sounds by the tweet those callbacks are now just suspend functions so either we change the integration or we get rid of it once we update retrofit
If it's not needed anymore we can definetly get rid of it
s
We’re saying there is no need for
CallK
anymore. It abstracts over integrating with Retrofit using
Async<F>#async
but that’s not needed anymore due to
Async<F>#effect
.
p
not everyone has migrated to the coroutines implementation
or maybe they have?
lol they do
hard dependency on kx.coroutines xD
s
It seems like whatever you do these days you pull in kx coroutines.
If you’re on Android you’ve got it for sure
j
In Android 100% sure. Unless you're intentionally avoiding aac ViewModels (which are widely common nowadays) since those carry extensions on the viewModelScope
s
A bunch of libs bring coroutines these days. Square has also started depending on it in almost every lib.