doOnResult

fun <T : Any> Call<T>.doOnResult(scope: CoroutineScope, function: suspend (Result<T>) -> Unit): Call<T>

Run the given function before running the Call.

Parameters

scope

CoroutineScope to launch this procedure.

function

A given lambda function to be executed.