onLoading

inline fun <T> ApiResult<T>.onLoading(function: () -> Unit): ApiResult<T>