no way to set max capacity size of deque
Author: mooreniemiCreated Jul 14, 2021Updated Feb 21, 2026
Labelsquestioncrossbeam-deque
Confirming my understanding of the code: there is no way to enforce a max capacity size on the "buffer that holds tasks in a worker queue" which means it would grow unbounded to max usize with unbounded tasks added, right? Should I then make sure to throttle tasks upstream of using this deque?
I was curious about this because Rayon uses this data structure for its worker threadpool.
Source: crossbeam-rs/crossbeam