Skip to content

Commit 2638784

Browse files
authored
1 parent 0279335 commit 2638784

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

1-js/11-async/02-promise-basics/article.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ Imagine that you're a top singer, and fans ask day and night for your upcoming s
44

55
To get some relief, you promise to send it to them when it's published. You give your fans a list to which they can subscribe for updates. They can fill in their email addresses, so that when the song becomes available, all subscribed parties instantly receive it. And even if something goes very wrong, say, if plans to publish the song are cancelled, they will still be notified.
66

7-
Everyone is happy, because the people don't crowd you any more, and fans, because they won't miss the single.
7+
Everyone is happy, because the people don't crowd you anymore, and fans, because they won't miss the single.
88

99
This is a real-life analogy for things we often have in programming:
1010

@@ -218,7 +218,7 @@ Just like there's a `finally` clause in a regular `try {...} catch {...}`, there
218218
219219
The call `.finally(f)` is similar to `.then(f, f)` in the sense that it always runs when the promise is settled: be it resolve or reject.
220220
221-
`finally` is a good handler for performing cleanup, e.g. stopping our loading indicators, as they are not needed any more, no matter what the outcome is.
221+
`finally` is a good handler for performing cleanup, e.g. stopping our loading indicators, as they are not needed anymore, no matter what the outcome is.
222222
223223
Like this:
224224

0 commit comments

Comments
 (0)