tryFlow

inline fun <T> ApiResult.Companion.tryFlow(crossinline call: suspend () -> T): Flow<ApiResult<T>>

Emits ApiResult.Loading, then executes call and wraps it.

See also