python-trio / python-trio/trio
Get N items from Channel
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 7.3k
- Forks
- 431
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 6
Description
It would be super useful to be able to get multiple items from a trio.Queue object at once, ideally with a few options to tune if you want to get exactly N items (and block until N items happen), or if you're happy with less than that (and if you block, something with timeouts to be able to get what you've gotten so far).
Contributor guide
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 reviewing the existing trio.Queue API and the issue discussion to understand current retrieval behavior. Define how requests for exactly N items, fewer items, blocking, and timeouts should behave; done means the supported options are specified and covered by appropriate Queue tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100