@nxtedition/timers 1.0.4 → 1.0.5
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/README.md +2 -0
- package/lib/index.js +3 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -88,6 +88,8 @@ Cancel a pending timer. Works with both native and pooled handles. Passing `null
|
|
|
88
88
|
|
|
89
89
|
All pooled timers share a single `setTimeout` handle that fires every 500ms. On each tick, pending timers are checked and expired ones are fired. This means pooled timers have at most ~500ms of jitter but dramatically reduce the number of active OS timer handles when many long-lived timers are in use (e.g. connection idle timeouts, retry delays).
|
|
90
90
|
|
|
91
|
+
**Note:** Timers with the same delay are not guaranteed to fire in creation order. The execution order of same-delay timers is nondeterministic.
|
|
92
|
+
|
|
91
93
|
The internal interval is `unref()`'d so it does not keep the process alive.
|
|
92
94
|
|
|
93
95
|
## Benchmark
|
package/lib/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxtedition/timers",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"typescript": "^5.9.3"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@nxtedition/yield": "^1.0.
|
|
33
|
+
"@nxtedition/yield": "^1.0.12"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "f6592f0be62fecc161237610ae6454ec6585548b"
|
|
36
36
|
}
|