python-trio / python-trio/trio

Get N items from Channel

Open
#562 7 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

communication
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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.