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

await check when calling promise type #15581

Closed
pankleks opened this issue May 4, 2017 · 2 comments
Closed

await check when calling promise type #15581

pankleks opened this issue May 4, 2017 · 2 comments
Labels
Duplicate An existing issue was already created

Comments

@pankleks
Copy link

pankleks commented May 4, 2017

This is just suggestion, but it would allow to eliminate quite common mistake (at least in my experience).

async function foo() {
...
}

foo(); // show warning that async is called without await
await foo(); // ok

Obviously it should be warning only as many times this is intentional.
From my experience this kind of mistakes are hard to find and easy to make - that's why I think it would be really useful.

Thanks for consideration.

@jesseschalken
Copy link
Contributor

#10381

@pankleks
Copy link
Author

pankleks commented May 4, 2017

ok, thanks!

@pankleks pankleks closed this as completed May 4, 2017
@RyanCavanaugh RyanCavanaugh added the Duplicate An existing issue was already created label May 8, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate An existing issue was already created
Projects
None yet
Development

No branches or pull requests

3 participants