Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1165,21 +1165,21 @@ You can download the PDF and Epub version of this repository from the latest run
**[⬆ Back to Top](#table-of-contents)**

44. ### What is the difference between promise and observable?
Below are the list of differences between promise and observable,
Below are the list of differences between promise and observable:

| Observable | Promise |
|---- | --------- |
| Declarative: Computation does not start until subscription so that they can be run whenever you need the result | Execute immediately on creation|
| Provide multiple values over time | Provide only one |
| Subscribe method is used for error handling which makes centralized and predictable error handling| Push errors to the child promises |
| Declarative: Computation does not start until subscription, so they can run whenever you need the result | Executes immediately on creation|
| Provides multiple values over time | Provides only one |
| Subscribe method is used for error handling that facilitates centralized and predictable error handling | Push errors to the child promises |
| Provides chaining and subscription to handle complex applications | Uses only .then() clause |

**[⬆ Back to Top](#table-of-contents)**

45. ### What is multicasting?
Multi-casting is the practice of broadcasting to a list of multiple subscribers in a single execution.

Let's demonstrate the multi-casting feature,
Let's demonstrate the multi-casting feature:
```javascript
var source = Rx.Observable.from([1, 2, 3]);
var subject = new Rx.Subject();
Expand Down