← Winnitude! Search  ·  Reader Mode (989 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 35 LINKS

docs(fetch): add modern `Promise.allSettled` solution to fetch-users task by illia-m-b · Pull Request #3987 · javascript-tutorial/en.javascript.info

Repository navigation

docs(fetch): add modern Promise.allSettled solution to fetch-users task - #3987


Open
illia-m-b wants to merge 1 commit into javascript-tutorial:master from illia-m-b:patch-1
Open

docs(fetch): add modern Promise.allSettled solution to fetch-users task #3987 illia-m-b wants to merge 1 commit into javascript-tutorial:master from illia-m-b:patch-1

Conversation

illia-m-b commented Aug 5, 2026



Copy link Copy Markdown

Closes #3986

Description

Appends a production-grade alternative solution to the "Fetch users from GitHub" task.

Changes Made

  • Appended an "Alternative modern approach" section to solution.md.
  • Added a code snippet utilizing Promise.allSettled, async callbacks, and object destructuring.

Technical Rationale

The original solution intentionally mixes .then() with await for educational purposes. This addition complements the lesson by demonstrating current industry best practices:

  • Pure async/await syntax without chained Promise methods.
  • Graceful fault tolerance for network failures via Promise.allSettled.
  • Independent, non-blocking fetch execution.
javascript-translate-bot added the review needed Review needed, please approve or request changes label Aug 5, 2026 javascript-translate-bot requested a review from a team August 5, 2026 18:13 AKzar1el reviewed Nov 2, 2026
View reviewed changes

AKzar1el left a comment



Copy link Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more .

One issue in the new runnable alternative: the request URL is malformed, so the example will not fetch the intended GitHub user endpoint. I inspected the PR's current source and the existing solution; I did not run the tutorial's test suite.

docs(fetch): add modern Promise.allSettled solution to fetch-users ... b0e6413
...task (javascript-tutorial#3986)
illia-m-b force-pushed the patch-1 branch from 55fed0a to b0e6413
Compare
November 11, 2026 07:36

illia-m-b commented Nov 11, 2026



Copy link Copy Markdown
Author

@AKzar1el Thanks. I've addressed this. Please take a look when you have a moment.

Sign up for free to join this conversation on GitHub . Already have an account? Sign in to comment

Labels

review needed Review needed, please approve or request changes

3 participants