Contents [0/2] |
Promises [1/2] |
Starting to think about architecture [2/2] |
Promises [1/2] |
Don't expect everything to happen instantaneously!
Instead of calling functions and synchronously waiting for the result, use promises.
Promises are very good for actions that are either resolved successfully or rejected with an error or exception. Later in the class, we will consider RxJS Observables which can additionally be cancelled.
I will walk through slides 1-35: Promises Promises (video)
Nice examples using Promises.all
and Promises.race
Starting to think about architecture [2/2] |
To get a sense of the issues in large web apps, watch this from 10m21s to 24m00s.
Revised: 2008/03/17 13:01