dispatch
Called when a new Dispatch is ready to be processed by this Dispatcher.
Calling the callback callback will remove the dispatches from the persistent queue. Typical behaviour would be to process all events and call the callback with the full list of dispatches that were provided.
If batches have to be split and processed separately, then multiple callback executions should only pass the dispatches that have been processed each time.
Return
A disposable able to halt the processing of the given dispatches
Parameters
dispatches
The batch of dispatches to be processed by this Dispatcher
callback
The callback used to indicate that the dispatches are completed.