EitherCallAdapterFactory

class EitherCallAdapterFactory : CallAdapter.Factory

Author

skydoves (Jaewoong Eum)

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

Also, EitherCallAdapterFactory allows you to return Deferred of the Either.

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<*, *>?