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
1165
1165
**[⬆ Back to Top](#table-of-contents)**
1166
1166
1167
1167
44. ### 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:
1169
1169
1170
1170
| Observable | Promise |
1171
1171
|---- | --------- |
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 |
1175
1175
| Provides chaining and subscription to handle complex applications | Uses only .then() clause |
1176
1176
1177
1177
**[⬆ Back to Top](#table-of-contents)**
1178
1178
1179
1179
45. ### What is multicasting?
1180
1180
Multi-casting is the practice of broadcasting to a list of multiple subscribers in a single execution.
1181
1181
1182
- Let's demonstrate the multi-casting feature,
1182
+ Let's demonstrate the multi-casting feature:
1183
1183
```javascript
1184
1184
var source = Rx.Observable.from([1, 2, 3]);
1185
1185
var subject = new Rx.Subject();
You can’t perform that action at this time.
0 commit comments