Slide 7
Slide 7 text
Async/Await - ES7
Descrip(on
When async func,on is called, it returns a promise. When the
async func,on returns a value, the promise will be resolved with
the returned value. When the async func,on throws an excep,on
or some value, the promise will be rejected with the thrown value.
Async func)on can contain await expression, that pauses the
execu)on of the async func)on and waits for the passed promise's
resolu)on, and resumes the async func)on's execu)on and returns
the resolved value.