request
inline fun <T> Call<T>.request(crossinline onResult: (response: ApiResponse<T>) -> Unit): Call<T>
Content copied to clipboard
Author
skydoves (Jaewoong Eum)
Requests asynchronously and executes the lambda that receives ApiResponse as a result.
Return
The original Call.
Parameters
onResult
An lambda that receives ApiResponse as a result.