pub fn fifo<T>(capacity: usize) -> (Producer<T>, Consumer<T>)
Expand description
Create a new FIFO with the given capacity.
This FIFO is optimised for a consumer running on a real-time thread. Elements are not dropped when they are popped, instead they will be dropped when they are overwritten by a later push, or when the buffer is dropped.