syncbox
syncbox copied to clipboard
Concurrency utilities for Rust
Deriving debug would be nice to allow users to also derive debug in their own structs. Otherwise the compiler fails with something like ``` src/lib.rs:54:5: 54:25 error: the trait `core::fmt::Debug`...
The `LinkedQueue` has `offer_ms` and `poll_ms` which both take a `u32` of milliseconds, while the `DelayQueue` has a `poll_timeout` that takes a `Duration`. Since `Duration` is provided in the `std`,...
They both present a bounded queue interface with blocking gets and error-on-full for puts, but `ArrayQueue` has `push` and `pop`, while `LinkedQueue` matches the `Queue` trait with `offer` and `poll`.
It can't be safely implemented on the ArrayQueue.
This issue is to track the overall API of `Stream` at a highish level and is a work in progress. I'll update the original post as the discussion evolves. ```...
Is there any interest in this? I was skimming the docs and code here and it's a bit sparse. I wouldn't mind throwing a few small PRs if they'd be...
The `threadpool` package for example takes `usize`, I never really gave it much thought but it makes more sense to me, no?