A Sequencer
accepts a function that yields the next result of a DataLoader
and then has the opportunity to influence the order in which these results are returned.
More...
#include <sequencers.h>
Public Types | |
using | ResultProducer = std::function< optional< Result >()> |
Public Member Functions | |
virtual optional< Result > | next (ResultProducer next_result)=0 |
A Sequencer
accepts a function that yields the next result of a DataLoader
and then has the opportunity to influence the order in which these results are returned.
The NoSequencer
does not enforce any sequencing and returns any result directly. The OrderedSequencer
instead buffers results internally to return them in order of their sequence number.
Definition at line 29 of file sequencers.h.