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 @@ -1152,21 +1152,21 @@ You can download the PDF and Epub version of this repository from the latest run
11521152 **[⬆ Back to Top](#table-of-contents)**
11531153
1154115444. ### What is the difference between promise and observable?
1155- Below are the list of differences between promise and observable,
1155+ Below are the list of differences between promise and observable:
11561156
11571157 | Observable | Promise |
11581158 |---- | --------- |
1159- | Declarative: Computation does not start until subscription so that they can be run whenever you need the result | Execute immediately on creation|
1160- | Provide multiple values over time | Provide only one |
1161- | Subscribe method is used for error handling which makes centralized and predictable error handling| Push errors to the child promises |
1159+ | Declarative: Computation does not start until subscription, so they can run whenever you need the result | Executes immediately on creation|
1160+ | Provides multiple values over time | Provides only one |
1161+ | Subscribe method is used for error handling that facilitates centralized and predictable error handling | Push errors to the child promises |
11621162 | Provides chaining and subscription to handle complex applications | Uses only .then() clause |
11631163
11641164 **[⬆ Back to Top](#table-of-contents)**
11651165
1166116645. ### What is multicasting?
11671167 Multi-casting is the practice of broadcasting to a list of multiple subscribers in a single execution.
11681168
1169- Let's demonstrate the multi-casting feature,
1169+ Let's demonstrate the multi-casting feature:
11701170 ```javascript
11711171 var source = Rx.Observable.from([1, 2, 3]);
11721172 var subject = new Rx.Subject();
You can’t perform that action at this time.
0 commit comments