onIdle

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