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
StreamandSinktraits forReceiverandSender, allowing you to convert aReceiverinto aStreamusing thestream()orinto_stream()methods, and convert aSenderinto aSinkusing thesink()orinto_sink()methods. - Added
SendSinkandRecvStreamstructs - Fixed a bug in send methods to properly wake pending receivers
- Added convenience methods to
SendFuture,RecvFuture,SendSinkandRecvStream: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! ![]()