Await

RisingStack's services:

Sign up to our newsletter!

In this article:

In an async function, you can await any Promise or catch its rejection cause. In ECMAScript 2017, the async and await keywords were introduced. These features make writing asynchronous code easier and more readable in the long run. They aid in the transition from asynchronicity to synchronism by making it appear more like classic synchronous code, so they’re well worth learning.

Share this post

Twitter
Facebook
LinkedIn
Reddit