DataSourceCall
data class DataSourceCall<Request, Response>(val key: PureDataSourceKey<DataSource<Request, Response>>, val request: Request) : ForegroundJobAction
An action that triggers a DataSource (identified by a given key) call with a given request in a foreground coroutine.
Constructors
Link copied to clipboard
fun <Request, Response> DataSourceCall(key: PureDataSourceKey<DataSource<Request, Response>>, request: Request)
Properties
Extensions
Link copied to clipboard
inline fun <Request, Response, T : DataSourceAction<Request, Response>> Action?.asDataSourceAction(key: PureDataSourceKey<DataSource<Request, Response>>): T?
Returns this as T if it is an instance of DataSourceAction associated with given key.