KtorfitSuspendCallResponseConverter

Converter to enable the use of Call<> as return type in suspend functions e.g. suspend fun test(): Call

Constructors

KtorfitSuspendCallResponseConverter
Link copied to clipboard
fun KtorfitSuspendCallResponseConverter()

Functions

supportedType
Link copied to clipboard
open override fun supportedType(returnTypeName: String): Boolean

Check if this converter supports the return type

wrapResponse
Link copied to clipboard
open suspend override fun <T : Any> wrapResponse(returnTypeName: String, requestFunction: suspend () -> <ERROR CLASS><<ERROR CLASS>, <ERROR CLASS>>): Any