Producer/consumer in 2026 — Channels instead of BlockingCollection and BufferBlock
BlockingCollection blocks threads, BufferBlock pulls in a whole dataflow library for a queue, and a hand-rolled Queue plus lock is a race condition waiting to happen. System.Threading.Channels is the async-native producer/consumer queue, with backpressure and completion built in.