3 ms·
In addition to that, demand is asynchronous: the consumer can request for more events, at any amount, any time it wants to. The default implementation requests
by josevalim 10y ago
In addition to that, demand is asynchronous: the consumer can request for more events, at any amount, any time it wants to.
The default implementation requests more when half of the current demand is processed. So if you set :max_demand to 100, when the consumer has processed 50 events, we request 50 more.