Proposal to add keyword "nowait"
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>
> 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...
More information about the es-discuss