← Back to release summary

Async/await functions

Category
JavaScript
Type
New or changed feature
Status
Enabled by default (Chrome 55)
Intent stage
None

Summary

Async functions make it easy to write code which needs to "block" on certain asynchronous events JavaScript. Async/await does this by providing a simpler and more ergonomic way to use Promises. To block on a value, use the 'await' keyword. Async/await can be implemented based on a desugaring to generators, as described in the following design doc: https://docs.google.com/document/d/1K38ct2dsxG_9OfmgErvFld4MPDC4Wkr8tPuqmSWu_3Y/edit?usp=sharing

Standards & signals

Docs: https://developers.google.com/web/fundamentals/getting-started/primers/async-functions https://jakearchibald.com/2014/es7-async-functions/

Samples: https://blogs.msdn.microsoft.com/eternalcoding/2015/09/30/javascript-goes-to-asynchronous-city

View on chromestatus.com