-
Notifications
You must be signed in to change notification settings - Fork 0
Asynchronous and reactive programming (Promises, RxJS)
Matěj Chalk edited this page Jul 30, 2020
·
1 revision
Client-side programming is asynchronous by nature, as changes to UI state are prompted by user events, network responses, etc. The most common ways of handling events are:
- callback functions (used to be the only way, e.g. via
addEventListener
), -
Promises (now built into ECMAScript, including
async
/await
syntax), - Observable pattern (more expressive, currently reliant on 3rd party implementations, e.g. RxJS).
- constructing new Promises
- handling Promises:
- Promise synchronization
- Reactive JS: Are you ready for the next big paradigm shift? - Udemy course (ask for credentials)
- You don't need RxJS ... but it f**king helps by Pavel Tobiáš (PDF slides, source code)
- RxJS operators and observable chain by Jan Strapek (Google slides, PDF)