Safe Haskell | None |
---|---|
Language | Haskell2010 |
Bucketing requests by DataSource
.
When a request is issued by the client via dataFetch
, it is placed
in the RequestStore
. When we are ready to fetch the current batch
of requests, the contents
operation extracts the fetches, bucketed
by DataSource
.
This module is provided for access to Haxl internals only; most users should not need to import it.
- data BlockedFetches u = DataSource u r => BlockedFetches [BlockedFetch r]
- data RequestStore u
- noRequests :: RequestStore u
- addRequest :: forall u r. DataSource u r => BlockedFetch r -> RequestStore u -> RequestStore u
- contents :: RequestStore u -> [BlockedFetches u]
Documentation
data BlockedFetches u Source #
A batch of BlockedFetch
objects for a single DataSource
DataSource u r => BlockedFetches [BlockedFetch r] |
data RequestStore u Source #
A container for multiple BlockedFetch
objects.
noRequests :: RequestStore u Source #
A new empty RequestStore
.
addRequest :: forall u r. DataSource u r => BlockedFetch r -> RequestStore u -> RequestStore u Source #
Adds a BlockedFetch
to a RequestStore
.
contents :: RequestStore u -> [BlockedFetches u] Source #
Retrieves the whole contents of the RequestStore
.