A new feature added in ES6 was the ability to convert a function into a Promise by adding the keyword async in front of it.
This also allowed us to use the keyword await to pause the function and wait for the result of some Asynchronous code.
Code GIST: gist.github.com/prof3ssorSt3v...
Негізгі бет Intro to Async and Await
Пікірлер: 31