ResultCallAdapterFactory

class ResultCallAdapterFactory : CallAdapter.Factory

Author

skydoves (Jaewoong Eum)

Since

1.0.0

Creates ResultCallAdapter instances, which return Result type of the response from the service interface method with the suspend keyword. You can create the ResultCallAdapterFactory with your own CoroutineScope, which executes network requests.

Also, ResultCallAdapterFactory allows you to return Deferred of the Result.

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
open operator override fun get(    returnType: Type,     annotations: Array<out Annotation>,     retrofit: Retrofit): CallAdapter<*, *>?