python-trio / python-trio/trio

Add an example to the tutorial that demonstrates collecting results from tasks

Open
#421 2 comments 2 reactions 0 assignees View on GitHub

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

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

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.