javascript-tutorial / javascript-tutorial/ru.javascript.info

Дополнение в статье про Promise

Open
#1,825 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

suggestion: tutorial
Dominant language
HTML
Stars
4.1k
Forks
922
PR merge metrics
No merged PRs in 30d

Description

Здравствуйте.
В главах про промисы не рассматриваются такие случаи:

  new Promise((resolveOuter) => {
    resolveOuter(
      new Promise((resolveInner) => {
        setTimeout(resolveInner, 1000);
      }),
    );
  });

когда в промисе резолвится ещё один промис.

Было бы здорово рассмотреть и такое.

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 Promise chapters that explain resolving one promise with another and review the surrounding examples. Add coverage of the nested Promise case shown in the issue, including its delayed settlement behavior, and verify that the revised article examples render correctly.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
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.