mapLoading

infix inline fun <T, R : T> ApiResult<T>.mapLoading(block: () -> R): ApiResult<T>

Maps Loading to a Success, not affecting other states.

See also