Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Meta-issue for discussion of the proposal to make `async` functions start synchronously #30345

leafpetersen opened this issue Aug 7, 2017 · 1 comment


Copy link

commented Aug 7, 2017

This issue is to provide a forum for community discussion and feedback related to the proposal to make async functions start their execution synchronously.

Currently invoking an async function delays running the function body until a later microtask. This has been a source of bugs when converting synchronous functions to being async. This change would make the async function run until the first asynchronous operation (await, await-for) before returning the future.
This does not affect async* functions.

This entry will be updated when a proposal is available.

cc @munificent @eernstg @floitschG @lrhn


This comment has been minimized.

Copy link

commented Jun 29, 2018

This landed in the VM in 2.0.0-dev.61.0, DDC in 2.0.0-dev.52.0, and dart2js in 2.0.0-dev.51.0.

Its progress does not appear to be tracked in this issue, nor is there any discussion or feedback here. sync-async is here to stay. :)

@srawlins srawlins closed this Jun 29, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
2 participants
You can’t perform that action at this time.