mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
8aeb9303e9
Currently, the `mpsc::Receiver` offers methods for receiving values in both blocking (`recv`) and non-blocking (`try_recv`) flavours. However only blocking iteration over values is supported. This commit adds a non-blocking iterator to complement the `try_recv` method, just as the blocking iterator complements the `recv` method.