{"action":"created","comment":{"url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/pulls/comments/281181065","pull_request_review_id":233967673,"id":281181065,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDI4MTE4MTA2NQ==","diff_hunk":"@@ -148,42 +148,42 @@ Promise.all([\n ]).catch(alert); // Error: Whoops!\n ```\n \n-Here the second promise rejects in two seconds. That leads to immediate rejection of `Promise.all`, so `.catch` executes: the rejection error becomes the outcome of the whole `Promise.all`.\n+Тут второй промис будет отклонен через 2 секунды. Это приведет к немедленному отклонению всего `Promise.all`, поэтому выполнится `.catch`: ошибка отклоненного промиса становится результатом всего `Promise.all`.\n \n-The important detail is that promises provide no way to \"cancel\" or \"abort\" their execution. So other promises continue to execute, and then eventually settle, but all their results are ignored.\n+Важный момент - промисы не предоставляют способа \"отклонить\" или \"прервать\" их выполнение. Таким образом, промисы продолжат выполняться, но все результаты будут игнорироваться.\n \n-There are ways to avoid this: we can either write additional code to `clearTimeout` (or otherwise cancel) the promises in case of an error, or we can make errors show up as members in the resulting array (see the task below this chapter about it).\n+Есть варианты обойти данное ограничение: можно написать дополнительный код для `clearTimeout` (или каким-то другим образом отменить промис) в случае ошибки, либо можно сделать так, чтобы ошибки становились элементами в результирующем массиве (смотрите задачу ниже).\n \n-````smart header=\"`Promise.all(...)` allows non-promise items in `iterable`\"\n-Normally, `Promise.all(...)` accepts an iterable (in most cases an array) of promises. But if any of those objects is not a promise, it's wrapped in `Promise.resolve`.\n+````smart header=\"`Promise.all(...)` разрешает передавать НЕ промисы в `iterable` (итерируемом) объекте\"\n+Обычно, `Promise.all(...)` принимает итерируемый (чаще всего массив) объект промисов. Но если любой из этих объектов не является промисом, он помещается в `Promise.resolve`.\n \n-For instance, here the results are `[1, 2, 3]`:\n+Например, `[1, 2, 3]` это результат:","path":"1-js/11-async/05-promise-api/article.md","position":178,"original_position":178,"commit_id":"f06721a74a6ba695b8cf185e0f5864cda5292a1f","original_commit_id":"f06721a74a6ba695b8cf185e0f5864cda5292a1f","user":{"login":"iliakan","id":349336,"node_id":"MDQ6VXNlcjM0OTMzNg==","avatar_url":"https://avatars0.githubusercontent.com/u/349336?v=4","gravatar_id":"","url":"https://api.github.com/users/iliakan","html_url":"https://github.com/iliakan","followers_url":"https://api.github.com/users/iliakan/followers","following_url":"https://api.github.com/users/iliakan/following{/other_user}","gists_url":"https://api.github.com/users/iliakan/gists{/gist_id}","starred_url":"https://api.github.com/users/iliakan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iliakan/subscriptions","organizations_url":"https://api.github.com/users/iliakan/orgs","repos_url":"https://api.github.com/users/iliakan/repos","events_url":"https://api.github.com/users/iliakan/events{/privacy}","received_events_url":"https://api.github.com/users/iliakan/received_events","type":"User","site_admin":false},"body":"Например, здесь результат: `[1, 2, 3]`","created_at":"2019-05-06T13:19:54Z","updated_at":"2019-05-06T13:21:56Z","html_url":"https://github.com/javascript-tutorial/ru.javascript.info/pull/124#discussion_r281181065","pull_request_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/pulls/124","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/pulls/comments/281181065"},"html":{"href":"https://github.com/javascript-tutorial/ru.javascript.info/pull/124#discussion_r281181065"},"pull_request":{"href":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/pulls/124"}}},"pull_request":{"url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/pulls/124","id":275017938,"node_id":"MDExOlB1bGxSZXF1ZXN0Mjc1MDE3OTM4","html_url":"https://github.com/javascript-tutorial/ru.javascript.info/pull/124","diff_url":"https://github.com/javascript-tutorial/ru.javascript.info/pull/124.diff","patch_url":"https://github.com/javascript-tutorial/ru.javascript.info/pull/124.patch","issue_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/issues/124","number":124,"state":"open","locked":false,"title":"fix(1-js/11-async/05-promise-api): Перевести главу и задачи","user":{"login":"Kichikahunov","id":4546215,"node_id":"MDQ6VXNlcjQ1NDYyMTU=","avatar_url":"https://avatars2.githubusercontent.com/u/4546215?v=4","gravatar_id":"","url":"https://api.github.com/users/Kichikahunov","html_url":"https://github.com/Kichikahunov","followers_url":"https://api.github.com/users/Kichikahunov/followers","following_url":"https://api.github.com/users/Kichikahunov/following{/other_user}","gists_url":"https://api.github.com/users/Kichikahunov/gists{/gist_id}","starred_url":"https://api.github.com/users/Kichikahunov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kichikahunov/subscriptions","organizations_url":"https://api.github.com/users/Kichikahunov/orgs","repos_url":"https://api.github.com/users/Kichikahunov/repos","events_url":"https://api.github.com/users/Kichikahunov/events{/privacy}","received_events_url":"https://api.github.com/users/Kichikahunov/received_events","type":"User","site_admin":false},"body":"@iliakan, @lex111 сложности с формулировкой, если есть возможность, посоветуйте правильный вариант:\r\n\r\nЕсть способы, которые помогут избежать этого: мы можем написать дополнительный код для `clearTimeout` (или каким-то другим образом отменить промис) промиса в случае ошибки, либо можно сделать так, чтобы ошибки отображались как элементы в результирующем массиве (смотрите задачу ниже).\r\n\r\nОригинал:\r\n\r\nThere are ways to avoid this: we can either write additional code to clearTimeout (or otherwise cancel) the promises in case of an error, or we can make errors show up as members in the resulting array (see the task below this chapter about it).","created_at":"2019-05-01T12:26:50Z","updated_at":"2019-05-06T13:21:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2d9f01b8413cb0f4660fd64b47a6c2d71e2b3289","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1340812519,"node_id":"MDU6TGFiZWwxMzQwODEyNTE5","url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/labels/changes%20requested","name":"changes requested","color":"82ffdf","default":false},{"id":1318652675,"node_id":"MDU6TGFiZWwxMzE4NjUyNjc1","url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/labels/needs%20+1","name":"needs +1","color":"c92458","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/pulls/124/commits","review_comments_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/pulls/124/comments","review_comment_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/pulls/comments{/number}","comments_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/issues/124/comments","statuses_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/statuses/f06721a74a6ba695b8cf185e0f5864cda5292a1f","head":{"label":"Kichikahunov:1-js/11-async/05-promise-api","ref":"1-js/11-async/05-promise-api","sha":"f06721a74a6ba695b8cf185e0f5864cda5292a1f","user":{"login":"Kichikahunov","id":4546215,"node_id":"MDQ6VXNlcjQ1NDYyMTU=","avatar_url":"https://avatars2.githubusercontent.com/u/4546215?v=4","gravatar_id":"","url":"https://api.github.com/users/Kichikahunov","html_url":"https://github.com/Kichikahunov","followers_url":"https://api.github.com/users/Kichikahunov/followers","following_url":"https://api.github.com/users/Kichikahunov/following{/other_user}","gists_url":"https://api.github.com/users/Kichikahunov/gists{/gist_id}","starred_url":"https://api.github.com/users/Kichikahunov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kichikahunov/subscriptions","organizations_url":"https://api.github.com/users/Kichikahunov/orgs","repos_url":"https://api.github.com/users/Kichikahunov/repos","events_url":"https://api.github.com/users/Kichikahunov/events{/privacy}","received_events_url":"https://api.github.com/users/Kichikahunov/received_events","type":"User","site_admin":false},"repo":{"id":180708818,"node_id":"MDEwOlJlcG9zaXRvcnkxODA3MDg4MTg=","name":"javascript-tutorial-ru","full_name":"Kichikahunov/javascript-tutorial-ru","private":false,"owner":{"login":"Kichikahunov","id":4546215,"node_id":"MDQ6VXNlcjQ1NDYyMTU=","avatar_url":"https://avatars2.githubusercontent.com/u/4546215?v=4","gravatar_id":"","url":"https://api.github.com/users/Kichikahunov","html_url":"https://github.com/Kichikahunov","followers_url":"https://api.github.com/users/Kichikahunov/followers","following_url":"https://api.github.com/users/Kichikahunov/following{/other_user}","gists_url":"https://api.github.com/users/Kichikahunov/gists{/gist_id}","starred_url":"https://api.github.com/users/Kichikahunov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kichikahunov/subscriptions","organizations_url":"https://api.github.com/users/Kichikahunov/orgs","repos_url":"https://api.github.com/users/Kichikahunov/repos","events_url":"https://api.github.com/users/Kichikahunov/events{/privacy}","received_events_url":"https://api.github.com/users/Kichikahunov/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Kichikahunov/javascript-tutorial-ru","description":"Современный учебник Javascript","fork":true,"url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru","forks_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/forks","keys_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/teams","hooks_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/hooks","issue_events_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/issues/events{/number}","events_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/events","assignees_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/assignees{/user}","branches_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/branches{/branch}","tags_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/tags","blobs_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/git/refs{/sha}","trees_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/statuses/{sha}","languages_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/languages","stargazers_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/stargazers","contributors_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/contributors","subscribers_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/subscribers","subscription_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/subscription","commits_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/commits{/sha}","git_commits_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/git/commits{/sha}","comments_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/comments{/number}","issue_comment_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/issues/comments{/number}","contents_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/contents/{+path}","compare_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/merges","archive_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/downloads","issues_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/issues{/number}","pulls_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/pulls{/number}","milestones_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/milestones{/number}","notifications_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/labels{/name}","releases_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/releases{/id}","deployments_url":"https://api.github.com/repos/Kichikahunov/javascript-tutorial-ru/deployments","created_at":"2019-04-11T03:39:43Z","updated_at":"2019-05-04T04:00:30Z","pushed_at":"2019-05-06T08:19:25Z","git_url":"git://github.com/Kichikahunov/javascript-tutorial-ru.git","ssh_url":"git@github.com:Kichikahunov/javascript-tutorial-ru.git","clone_url":"https://github.com/Kichikahunov/javascript-tutorial-ru.git","svn_url":"https://github.com/Kichikahunov/javascript-tutorial-ru","homepage":"https://javascript.info","size":491553,"stargazers_count":1,"watchers_count":1,"language":"HTML","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":0,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"javascript-tutorial:master","ref":"master","sha":"61de0b0b549f981773f2b75c65829de1937018dd","user":{"login":"javascript-tutorial","id":49552305,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5NTUyMzA1","avatar_url":"https://avatars1.githubusercontent.com/u/49552305?v=4","gravatar_id":"","url":"https://api.github.com/users/javascript-tutorial","html_url":"https://github.com/javascript-tutorial","followers_url":"https://api.github.com/users/javascript-tutorial/followers","following_url":"https://api.github.com/users/javascript-tutorial/following{/other_user}","gists_url":"https://api.github.com/users/javascript-tutorial/gists{/gist_id}","starred_url":"https://api.github.com/users/javascript-tutorial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javascript-tutorial/subscriptions","organizations_url":"https://api.github.com/users/javascript-tutorial/orgs","repos_url":"https://api.github.com/users/javascript-tutorial/repos","events_url":"https://api.github.com/users/javascript-tutorial/events{/privacy}","received_events_url":"https://api.github.com/users/javascript-tutorial/received_events","type":"Organization","site_admin":false},"repo":{"id":160851084,"node_id":"MDEwOlJlcG9zaXRvcnkxNjA4NTEwODQ=","name":"ru.javascript.info","full_name":"javascript-tutorial/ru.javascript.info","private":false,"owner":{"login":"javascript-tutorial","id":49552305,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ5NTUyMzA1","avatar_url":"https://avatars1.githubusercontent.com/u/49552305?v=4","gravatar_id":"","url":"https://api.github.com/users/javascript-tutorial","html_url":"https://github.com/javascript-tutorial","followers_url":"https://api.github.com/users/javascript-tutorial/followers","following_url":"https://api.github.com/users/javascript-tutorial/following{/other_user}","gists_url":"https://api.github.com/users/javascript-tutorial/gists{/gist_id}","starred_url":"https://api.github.com/users/javascript-tutorial/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javascript-tutorial/subscriptions","organizations_url":"https://api.github.com/users/javascript-tutorial/orgs","repos_url":"https://api.github.com/users/javascript-tutorial/repos","events_url":"https://api.github.com/users/javascript-tutorial/events{/privacy}","received_events_url":"https://api.github.com/users/javascript-tutorial/received_events","type":"Organization","site_admin":false},"html_url":"https://github.com/javascript-tutorial/ru.javascript.info","description":"Современный учебник JavaScript","fork":false,"url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info","forks_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/forks","keys_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/keys{/key_id}","collaborators_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/teams","hooks_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/hooks","issue_events_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/issues/events{/number}","events_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/events","assignees_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/assignees{/user}","branches_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/branches{/branch}","tags_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/tags","blobs_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/git/refs{/sha}","trees_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/git/trees{/sha}","statuses_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/statuses/{sha}","languages_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/languages","stargazers_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/stargazers","contributors_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/contributors","subscribers_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/subscribers","subscription_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/subscription","commits_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/commits{/sha}","git_commits_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/git/commits{/sha}","comments_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/comments{/number}","issue_comment_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/issues/comments{/number}","contents_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/contents/{+path}","compare_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/compare/{base}...{head}","merges_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/merges","archive_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/downloads","issues_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/issues{/number}","pulls_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/pulls{/number}","milestones_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/milestones{/number}","notifications_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/labels{/name}","releases_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/releases{/id}","deployments_url":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/deployments","created_at":"2018-12-07T16:49:32Z","updated_at":"2019-05-06T10:18:14Z","pushed_at":"2019-05-06T12:46:50Z","git_url":"git://github.com/javascript-tutorial/ru.javascript.info.git","ssh_url":"git@github.com:javascript-tutorial/ru.javascript.info.git","clone_url":"https://github.com/javascript-tutorial/ru.javascript.info.git","svn_url":"https://github.com/javascript-tutorial/ru.javascript.info","homepage":"learn.javascript.ru","size":492785,"stargazers_count":148,"watchers_count":148,"language":"HTML","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":85,"mirror_url":null,"archived":false,"disabled":false,"open_issues_count":101,"license":{"key":"other","name":"Other","spdx_id":"NOASSERTION","url":null,"node_id":"MDc6TGljZW5zZTA="},"forks":85,"open_issues":101,"watchers":148,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/pulls/124"},"html":{"href":"https://github.com/javascript-tutorial/ru.javascript.info/pull/124"},"issue":{"href":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/issues/124"},"comments":{"href":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/issues/124/comments"},"review_comments":{"href":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/pulls/124/comments"},"review_comment":{"href":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/pulls/124/commits"},"statuses":{"href":"https://api.github.com/repos/javascript-tutorial/ru.javascript.info/statuses/f06721a74a6ba695b8cf185e0f5864cda5292a1f"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"iliakan"}}