Skip to content

Commit 6c77be9

Browse files
committed
Merge pull request #170 from gunyarakun/first-appearance-all-race
fix(then-return-new-promise): all/race初出に説明を補足
2 parents 1787e1a + 773c838 commit 6c77be9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Ch2_HowToWrite/then-return-new-promise.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ console.log(thenPromise !== catchPromise);// => true
2929

3030
image::img/then_catch.png[Then Catch flow]
3131

32-
この挙動はPromise全般に当てはまるため、`Promise.all`や`Promise.race`も
33-
引数で受け取ったものとは別のpromiseオブジェクトを作って返しています。
34-
3532
この仕組みはPromiseを拡張する時は意識しないと、いつのまにか触ってるpromiseオブジェクトが
3633
別のものであったという事が起こりえると思います。
3734

@@ -110,4 +107,7 @@ function anAsyncCall() {
110107
----
111108

112109
これらのアンチパターンについて、詳しくは
113-
http://taoofcode.net/promise-anti-patterns/[Promise Anti-patterns] を参照して下さい。
110+
http://taoofcode.net/promise-anti-patterns/[Promise Anti-patterns] を参照して下さい。
111+
112+
この挙動はPromise全般に当てはまるため、後に説明する<<ch2-promise-all,Promise.all>>や<<ch2-promise-race,Promise.race>>も
113+
引数で受け取ったものとは別のpromiseオブジェクトを作って返しています。

0 commit comments

Comments
 (0)