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

Closed
leafpetersen opened this issue Aug 7, 2017 · 1 comment
Labels
area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). language-discussion

Comments

@leafpetersen
Copy link
Member

leafpetersen 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

@leafpetersen leafpetersen added area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). language-discussion labels Aug 7, 2017
@srawlins
Copy link
Member

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. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-language Dart language related items (some items might be better tracked at github.com/dart-lang/language). language-discussion
Projects
None yet
Development

No branches or pull requests

2 participants