Skip to main content

DEFAULT_QUEUE_CAPACITY

Constant DEFAULT_QUEUE_CAPACITY 

Source
pub const DEFAULT_QUEUE_CAPACITY: usize = 256 /* 256usize */;
Expand description

Default channel capacity for event queues.

A reader that falls more than this many events behind the writer lags (Lagged(n) in the broadcast receiver) and recovers: since 0.15.0 a stream catches up from the task store’s event log rather than losing events. Deployments expecting many more events per task than this can raise it with RequestHandlerBuilder::with_event_queue_capacity() to make that catch-up rarer.