File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1165,21 +1165,21 @@ You can download the PDF and Epub version of this repository from the latest run
11651165 **[⬆ Back to Top](#table-of-contents)**
11661166
1167116744. ### What is the difference between promise and observable?
1168- Below are the list of differences between promise and observable,
1168+ Below are the list of differences between promise and observable:
11691169
11701170 | Observable | Promise |
11711171 |---- | --------- |
1172- | Declarative: Computation does not start until subscription so that they can be run whenever you need the result | Execute immediately on creation|
1173- | Provide multiple values over time | Provide only one |
1174- | Subscribe method is used for error handling which makes centralized and predictable error handling| Push errors to the child promises |
1172+ | Declarative: Computation does not start until subscription, so they can run whenever you need the result | Executes immediately on creation|
1173+ | Provides multiple values over time | Provides only one |
1174+ | Subscribe method is used for error handling that facilitates centralized and predictable error handling | Push errors to the child promises |
11751175 | Provides chaining and subscription to handle complex applications | Uses only .then() clause |
11761176
11771177 **[⬆ Back to Top](#table-of-contents)**
11781178
1179117945. ### What is multicasting?
11801180 Multi-casting is the practice of broadcasting to a list of multiple subscribers in a single execution.
11811181
1182- Let's demonstrate the multi-casting feature,
1182+ Let's demonstrate the multi-casting feature:
11831183 ```javascript
11841184 var source = Rx.Observable.from([1, 2, 3]);
11851185 var subject = new Rx.Subject();
You can’t perform that action at this time.
0 commit comments