source: node_modules/undici/lib/pool-stats.js

main
Last change on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago

Initial commit

  • Property mode set to 100644
File size: 552 bytes
Line 
1const { kFree, kConnected, kPending, kQueued, kRunning, kSize } = require('./core/symbols')
2const kPool = Symbol('pool')
3
4class PoolStats {
5 constructor (pool) {
6 this[kPool] = pool
7 }
8
9 get connected () {
10 return this[kPool][kConnected]
11 }
12
13 get free () {
14 return this[kPool][kFree]
15 }
16
17 get pending () {
18 return this[kPool][kPending]
19 }
20
21 get queued () {
22 return this[kPool][kQueued]
23 }
24
25 get running () {
26 return this[kPool][kRunning]
27 }
28
29 get size () {
30 return this[kPool][kSize]
31 }
32}
33
34module.exports = PoolStats
Note: See TracBrowser for help on using the repository browser.