Hey Rustaceans!
I wanted to share the latest updates to Loole, a fast multi-producer, multi-consumer channel implementation for Rust. We've just released version 0.4.0 with some exciting new features and improvements!
What's new in 0.4.0:
- Implemented the
Stream
andSink
traits forReceiver
andSender
, allowing you to convert aReceiver
into aStream
using thestream()
orinto_stream()
methods, and convert aSender
into aSink
using thesink()
orinto_sink()
methods. - Added
SendSink
andRecvStream
structs - Fixed a bug in send methods to properly wake pending receivers
- Added convenience methods to
SendFuture
,RecvFuture
,SendSink
andRecvStream
:is_closed()
: Check if the channel is closedis_empty()
: Check if the channel is emptyis_full()
: Check if the channel is fulllen()
: Get the number of messages in the channelcapacity()
: Get the channel capacity
GitHub Repo: GitHub - mahdi-shojaee/loole: A safe sync/async multi-producer, multi-consumer channel
We're looking for contributors! Whether it's adding new features, improving performance, or enhancing documentation, your contributions are welcome!
Check out the repo, give it a star if you like what you see, and feel free to open issues or pull requests. Let's make Loole even better together!
Happy coding!