doOnStart

fun <T : Any> Call<T>.doOnStart(scope: CoroutineScope, function: suspend () -> 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.