retrofit icon indicating copy to clipboard operation
retrofit copied to clipboard

Add support for Kotlin's Result

Open sunreview opened this issue 3 years ago • 1 comments

add the ResultCallAdapter to return Result to wrap the outcome (success/failure) of a retrofit call, instead of returning a value or throwing an exception. #3558

like

@GET("me") suspend fun getUser(): Result<User>

all the testcase in Kotlin-test package and retrofit-adapter moudle's test case has been passed

sunreview avatar Apr 05 '23 08:04 sunreview

@JakeWharton @codebutler hello ?anyone there

sunreview avatar Apr 13 '23 02:04 sunreview