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

Async body? #14

Open
Ltrlg opened this issue Oct 30, 2017 · 2 comments
Open

Async body? #14

Ltrlg opened this issue Oct 30, 2017 · 2 comments

Comments

@Ltrlg
Copy link

Ltrlg commented Oct 30, 2017

Reading the “testing” example, I remembered that I often need await in tests and developers will probably want to be able to use it in many of the presented use cases (of the first section in the readme, at least lock/foreach/using would obviously benefit of await).

Support or no support should be at least explicit in the readme.

@samuelgoto
Copy link
Owner

In the current formulation, async bodies wouldn't be supported, purely as a sequencing strategy than necessarily a disagreement. Can you give me an idea of what kind of use cases this would enable?

I ran into this, which may or may not be related:

https://github.com/inexorabletash/ecmascript-async-do-expressions

@samuelgoto
Copy link
Owner

Was just reading @isiahmeadows's alternative exploration and ran into some very interesting syntax space for async bodies. Here is what he has:

@foo(...) async do { ... } makes the block async, like an async function

Not sure yep what to think of, but food for thought (also, waned to connect the dots here between you two).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants