apache / apache/royale-compiler

Support for await and async

Open
#235 1 comment 0 reactions 0 assignees View on GitHub
language feature
Dominant language
Java
Stars
113
Forks
54
PR merge metrics
No merged PRs in 30d

Description

The description from MDN:

The await operator is used to wait for a [Promise](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise) and get its fulfillment value. It can only be used inside an [async function](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function) or at the top level of a [module](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules).

Await is useful for calling and waiting for results from remote services and code readability.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await#top_level_await

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.