zesterer / flume

A safe and fast multi-producer, multi-consumer channel.
https://crates.io/crates/flume
Apache License 2.0
2.47k stars 85 forks source link

recv on an empty unbounded channel keeps the task busy. #141

Closed fulmicoton closed 10 months ago

fulmicoton commented 10 months ago

(As observed on Quickwit)

recv_async on an empty unbounded Receiver yields, but poll loops. The task stays busy, and will take whatever available time there is on the tokio runtime thread.

This does not happen when using a bounded capacity.

fulmicoton commented 10 months ago

Could recreate a minimal example.