Exmld.KinesisStage.handle_demand
You're seeing just the function
handle_demand
, go back to Exmld.KinesisStage module for more information.
Handle subscriber demand.
Return up to incoming_demand + pending_demand
events, fetching (from state) as needed,
and storing in state any excess. If not enough events are available, record unsatisfied
demand in state, and then return those events when answering a subsequent call. See the
QueueBroadcaster
example in GenStage
for an explanation of this demand queueing
behavior.