Proposal to add keyword "nowait"
T.J. Crowder
tj.crowder at farsightsoftware.com
Mon Feb 12 10:34:08 UTC 2018
On Mon, Feb 12, 2018 at 10:28 AM, Александр Ефремов <mr.efrem at gmail.com>
wrote:
> Hm, yes, you are right.
> That’s https://eslint.org/docs/rules/require-await
> Thank you very much.
> In the next I will be more dig.
>
That just warns you if you've made a function `async` pointlessly (which
may or may not be because you forgot an `await`). It won't help you if you
have at least one `await` but have forgotten *others*.
Static analysis (such as done by ESLint) cannot perfectly solve the problem
you and Steven Mascaro are trying to solve: Forgetting `await`s in all
necessary locations in an `async` function.
-- T.J. Crowder
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180212/806621b6/attachment.html>
More information about the es-discuss
mailing list