@nxtedition/scheduler 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +2 -2
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -103,11 +103,11 @@ export class Scheduler {
|
|
|
103
103
|
if (this.#running < 1 || this.#stateView[RUNNING_INDEX] < queue.lim) {
|
|
104
104
|
Atomics.add(this.#stateView, RUNNING_INDEX, 1)
|
|
105
105
|
this.#running += 1
|
|
106
|
-
return fn()
|
|
106
|
+
return fn(opaque)
|
|
107
107
|
}
|
|
108
108
|
} else if (this.#running < 1 || this.#running < queue.lim) {
|
|
109
109
|
this.#running += 1
|
|
110
|
-
return fn()
|
|
110
|
+
return fn(opaque)
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
queue.arr.push(fn, opaque)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxtedition/scheduler",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -20,5 +20,5 @@
|
|
|
20
20
|
"rimraf": "^6.1.2",
|
|
21
21
|
"typescript": "^5.9.3"
|
|
22
22
|
},
|
|
23
|
-
"gitHead": "
|
|
23
|
+
"gitHead": "ee95b62bb1f5bc494fa4fcff603f5a44b44723ac"
|
|
24
24
|
}
|