javascript-tutorial / javascript-tutorial/en.javascript.info
Proposal: Add modern `Promise.allSettled` alternative to "Fetch users" task solution
Nobody has claimed this yet.
- Dominant language
- HTML
- Stars
- 25.5k
- Forks
- 4k
- PR merge metrics
- No merged PRs in 30d
Description
Description
The current solution for the "Fetch users from GitHub" task demonstrates parallel execution by mixing .then() with async/await. While this serves its stated pedagogical purpose, modern JavaScript codebases typically utilize pure async/await combined with Promise.allSettled for concurrent, fault-tolerant network requests.
Proposal
I propose adding a brief "Alternative modern approach" section to the bottom of the solution.md file. This addition will demonstrate how to achieve the same concurrent execution and error handling using Promise.allSettled and asynchronous array mapping, without removing the original lesson.
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
Read 5-network/01-fetch/01-fetch-users/solution.md alongside the linked task.md and existing solution. Add a brief “Alternative modern approach” section demonstrating concurrent, fault-tolerant requests with Promise.allSettled, async/await, and asynchronous array mapping, while retaining the original lesson. Done means the example is clear, consistent with the task, and documented in the solution file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- documentation
- Issue type
- Feature
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 84/100