smol-rs / concurrent-queue

Concurrent multi-producer multi-consumer queue
Apache License 2.0
254 stars 21 forks source link

Implement peek method #72

Closed tachibanayui closed 2 months ago

tachibanayui commented 2 months ago

Hello there! Is it possible to implement a peek(&self) -> Option<&T> method that doesn't consume the queue?

taiki-e commented 2 months ago

Duplicate of https://github.com/smol-rs/concurrent-queue/issues/40