suspendRequest

inline fun suspendRequest(coroutineScope: CoroutineScope, crossinline action: suspend ApiResponse<T>.() -> Unit): ResponseDataSource<T>

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>

extension method for requesting and observing response at once with a CoroutineContext.