python-trio / python-trio/trio
Add an example to the tutorial that demonstrates collecting results from tasks
Open
Nobody has claimed this yet.
docs
- Dominant language
- Python
- Stars
- 7.3k
- Forks
- 431
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 6
Description
For example, maybe something like:
https://gist.github.com/njsmith/986b0d0e04c3b2bb45de5d662ae873d5
Or the same but with results[i] = await trio.hazmat.Result.acapture(async_fn).
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
Locate the tutorial and review the linked gist for the proposed task-result collection example. Add a tutorial example showing how to collect results from tasks, then verify that the example is clear and runnable with the tutorial's existing setup.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100