Skip to content

Instantly share code, notes, and snippets.

@kobito-kaba
kobito-kaba / KotlinResultCallAdapterFactoryKt
Created May 27, 2021 04:23
Retrofit supports kotlin Result
package com.example.retrofit
import okhttp3.Request
import okio.Timeout
import retrofit2.*
import java.io.IOException
import java.lang.reflect.ParameterizedType
import java.lang.reflect.Type
import java.util.concurrent.Executor