i'm using a ktor client with `JsonFeature` , but I...
# ktor
w
i'm using a ktor client with
JsonFeature
, but I would like to wrap my return types with a
Result
sealed class type of thing instead of exceptions when a network error occurs - any suggestions for going forward with this?
c
how about wrapping calls with runCatching { }?
w
yeah thats what i was thinking of doing. i wasn't sure if i could add a feature to do this automatically or something