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

Proposal to add "nowait" #1098

Closed
MrEfrem opened this Issue Feb 12, 2018 · 2 comments

Comments

Projects
None yet
2 participants
@MrEfrem

MrEfrem commented Feb 12, 2018

Sometimes when create the async functions forget to add await and later such mistake difficult to find.
Maybe would be better always demand to add keyword nowait to calls returning promises which we don't plan to wait. But if this keyword and await keyword no exists then throw the error?

@MrEfrem MrEfrem closed this Feb 12, 2018

@CrocoDillon

This comment has been minimized.

Show comment
Hide comment
@CrocoDillon

CrocoDillon commented Feb 12, 2018

You can use ESLint's require-await for this.

@MrEfrem

This comment has been minimized.

Show comment
Hide comment
@MrEfrem

MrEfrem commented Feb 12, 2018

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment