rust-embedded / rust-embedded/heapless
`mpmc`: Add optional exponential backoff
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 2k
- Forks
- 253
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 1
Description
For users outside of RTOS such as bevy, spinning with exponential back-off is a good enough solution to avoid the issue raised in #583.
We could add an additional type parameter to Queue, which implements or not some form of backoff, similar to crossbeam-utils' Backoff, or does nothing.
This would allow having the option for downstreams who need it, without incurring any cost for downstreams who don't.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the mpmc Queue implementation and read issue #583 to understand the problem being addressed. Compare the proposed behavior with crossbeam-utils' Backoff, then define how the optional type parameter enables exponential backoff for users who need it without adding cost to other users. Done means both modes are supported and their behavior is covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- distributed-systems
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100