suspendRequest
inline fun suspendRequest(coroutineScope: CoroutineScope, crossinline action: suspend ApiResponse<T>.() -> Unit): ResponseDataSource<T>
Content copied to clipboard
extension method for requesting and observing response at once on a CoroutineScope.
inline fun suspendRequest(context: CoroutineContext = EmptyCoroutineContext, crossinline action: suspend ApiResponse<T>.() -> Unit): ResponseDataSource<T>
Content copied to clipboard
extension method for requesting and observing response at once with a CoroutineContext.