I'm building a service with a retrofit. Is there a...
# arrow
m
I'm building a service with a retrofit. Is there an adapter to use
Either
as return type? Or is there some different suggested way of handling retrofit calls?
s
you can use the default Retrofit support for
suspend
function
y
s
or the adapter from arrow-core.... that handles 4XX and 5XX errors as
Either.Left
m
awesome, thanks!
are those adapters released yet? I can't find them in 0.10.5 or 0.11 snapshot
or do I need other artifact than core?
j
They have been moved from arrow integrations, you can find them there for 0.10.5 and in core for snapshots
y
I think it's either a subpackage of core or an artifact called arrow-core-retrofit
m
yup, it's an artifact arrow-core-retrofit. Thanks
s
I believe it was added after the 0.10.5 release, so it's only available in snapshots