We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d6a5f04 commit b6fd8faCopy full SHA for b6fd8fa
2 files changed
.eslintrc.json
@@ -11,7 +11,8 @@
11
"globals": {
12
"BigInt": true,
13
"SharedArrayBuffer": true,
14
- "Atomics": true
+ "Atomics": true,
15
+ "BigInt": true
16
},
17
"rules": {
18
"indent": [
@@ -215,7 +216,7 @@
215
216
],
217
"arrow-parens": [
218
"error",
- "as-needed"
219
+ "always"
220
221
"arrow-body-style": [
222
JavaScript/8-await-counting.js
@@ -9,7 +9,7 @@ class CountingSemaphore {
9
}
10
enter() {
- return new Promise(resolve => {
+ return new Promise((resolve) => {
if (this.counter > 0) {
this.counter--;
resolve();
@@ -31,7 +31,7 @@ class CountingSemaphore {
31
32
// Usage
33
34
-const job = async task => {
+const job = async (task) => {
35
console.log('try enter', task);
36
await semaphore.enter();
37
console.log('enter', task);
0 commit comments