You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was surprising to me. Apparently the following code contains a race condition:
lettotalLength=0;asyncfunctionaddLengthOfSinglePage(pageNum){totalLength+=awaitgetPageLength(pageNum);}Promise.all([addLengthOfSinglePage(1),addLengthOfSinglePage(2)]).then(()=>{console.log('The combined length of both pages is',totalLength);});
Ecosystem impact: Only one repo failed. Looks to be a false positive. Reported here: eslint/eslint#11954 This carries some amount of false positive risk (at least based on what I've seen on the eslint tracker). I'd like to enable this in standard 13 and see how it goes. We can relax this rule if there are too many false positives.
The text was updated successfully, but these errors were encountered:
feross
changed the title
New rules: Disallow assignments that can lead to race conditions due to usage of await or yield (require-atomic-updates)
New rule: Disallow assignments that can lead to race conditions due to usage of await or yield (require-atomic-updates)
Jul 5, 2019
Given the false positive reported by @Lonniebiz in #1320 and the reports coming in on the ESLint repo here (eslint/eslint#11899) I'm going to disable this rule for the standard 13 release out of an abundance of caution. We can revisit it again later once it's had some more kinks worked out.
https://eslint.org/docs/rules/require-atomic-updates
This was surprising to me. Apparently the following code contains a race condition:
Ecosystem impact: Only one repo failed. Looks to be a false positive. Reported here: eslint/eslint#11954 This carries some amount of false positive risk (at least based on what I've seen on the eslint tracker). I'd like to enable this in
standard
13 and see how it goes. We can relax this rule if there are too many false positives.The text was updated successfully, but these errors were encountered: