javascript-tutorial / javascript-tutorial/en.javascript.info

Proposal: Add modern `Promise.allSettled` alternative to "Fetch users" task solution

オープン 初心者向け
#3,986 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
HTML
スター
25.5k
フォーク
4k
PR マージ指標
30日以内にマージされた PR はありません

説明

## Description

The current [solution](https://github.com/javascript-tutorial/en.javascript.info/blob/20208769e528337949e946f526534d61d38bac47/5-network/01-fetch/01-fetch-users/solution.md) for the ["Fetch users from GitHub"](https://github.com/javascript-tutorial/en.javascript.info/blob/20208769e528337949e946f526534d61d38bac47/5-network/01-fetch/01-fetch-users/task.md) 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.

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

5-network/01-fetch/01-fetch-users/solution.mdを、リンクされたtask.mdおよび既存のsolutionと併せて読みます。元のレッスンを維持しながら、Promise.allSettled、async/await、非同期の配列マッピングを使った並行かつフォールトトレラントなリクエストを示す、短い「現代的な代替アプローチ」セクションを追加します。例が明確でtaskと一貫しており、solutionファイルに記載されていれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
documentation
issue の種類
機能追加
難易度
2/5
見積もり時間
1〜3時間
活発さ
静か
明瞭さ
明確に書かれている
初心者へのやさしさ
84/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。