Function jupiter::commands::queue

source ·
pub fn queue() -> (Queue, Endpoint)
Expand description

Creates a new queue which connects an actor to the CommandDictionary.

Note that these queues are limited in size (1024) which should provide plenty of room for queuing incoming commands (actually it only needs to be the size of the expected number of clients). We do not use an unbounded queue, as we’d rather start rejecting incoming commands than crashing the whole server while running out of memory in an overload condition.