Add js_action.yaml

This commit is contained in:
Hang Cui
2025-10-22 15:40:45 -07:00
parent b09b3e038f
commit a36f405466
526 changed files with 191767 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
const { kFree, kConnected, kPending, kQueued, kRunning, kSize } = require('./core/symbols')
const kPool = Symbol('pool')
class PoolStats {
constructor (pool) {
this[kPool] = pool
}
get connected () {
return this[kPool][kConnected]
}
get free () {
return this[kPool][kFree]
}
get pending () {
return this[kPool][kPending]
}
get queued () {
return this[kPool][kQueued]
}
get running () {
return this[kPool][kRunning]
}
get size () {
return this[kPool][kSize]
}
}
module.exports = PoolStats