crossbeam
crossbeam copied to clipboard
special casing 1 entry bounded channel
Currently for bounded channel.rs crossbeam uses SenderFlavor::Array. Agave's poh recorder uses a bounded channel of single capacity. Special casing channel for 1 capacity can simplify this part. Is there any interest in creating a separate SenderFlavor for this?
The previous attempt was https://github.com/crossbeam-rs/crossbeam/issues/199#issuecomment-1019549315.