hawkw / thingbuf

in-place allocation-reusing queues for Rust
MIT License
293 stars 24 forks source link

feat(mpsc): add `len`, `capacity`, and `remaining` methods to mpsc #72

Closed jcrevier closed 7 months ago

jcrevier commented 2 years ago

Fixes #71

jcrevier commented 2 years ago

Ah, didn't notice that there was a StaticReceiver and StaticSender, definitely will want the methods on those. No qualms with any of the other suggestions. I'll update the PR shortly.

hawkw commented 2 years ago

Great, thank you! By the way, PR #73 fixed the build failure due to Clippy lints, so you may want to rebase onto the latest main so we can get a clean build. :)

Thanks again!

hawkw commented 2 years ago

ugh, i seem to have messed something up, hang on...