retrofit icon indicating copy to clipboard operation
retrofit copied to clipboard

Add support for Kotlin's Result

Open tomridder opened this issue 2 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

tomridder avatar Apr 05 '23 08:04 tomridder

@JakeWharton @codebutler hello ?anyone there

tomridder avatar Apr 13 '23 02:04 tomridder