From 461ea30b8cbf9afb613703725d02bf092c51823b Mon Sep 17 00:00:00 2001 From: Ilya Kantor Date: Fri, 27 Dec 2019 09:20:09 +0300 Subject: [PATCH] closes #1689 --- 1-js/11-async/02-promise-basics/article.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/1-js/11-async/02-promise-basics/article.md b/1-js/11-async/02-promise-basics/article.md index f8de3055..bee9a948 100644 --- a/1-js/11-async/02-promise-basics/article.md +++ b/1-js/11-async/02-promise-basics/article.md @@ -272,6 +272,10 @@ let promise = new Promise(resolve => resolve("done!")); promise.then(alert); // done! (shows up right now) ``` + +Note that this is different, and more powerful than the real life "subscription list" scenario. If the singer has already released their song and then a person signs up on the subscription list, they probably won't receive that song. Subscriptions in real life must be done prior to the event. + +Promises are more flexible. We can add handlers any time: if the result is already there, our handlers get it immediately. ```` Next, let's see more practical examples of how promises can help us write asynchronous code.