xref: /third_party/node/deps/undici/src/lib/pool-stats.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/deps/undici/src/lib/
11cb0ef41Sopenharmony_ciconst { kFree, kConnected, kPending, kQueued, kRunning, kSize } = require('./core/symbols')
21cb0ef41Sopenharmony_ciconst kPool = Symbol('pool')
31cb0ef41Sopenharmony_ci
41cb0ef41Sopenharmony_ciclass PoolStats {
51cb0ef41Sopenharmony_ci  constructor (pool) {
61cb0ef41Sopenharmony_ci    this[kPool] = pool
71cb0ef41Sopenharmony_ci  }
81cb0ef41Sopenharmony_ci
91cb0ef41Sopenharmony_ci  get connected () {
101cb0ef41Sopenharmony_ci    return this[kPool][kConnected]
111cb0ef41Sopenharmony_ci  }
121cb0ef41Sopenharmony_ci
131cb0ef41Sopenharmony_ci  get free () {
141cb0ef41Sopenharmony_ci    return this[kPool][kFree]
151cb0ef41Sopenharmony_ci  }
161cb0ef41Sopenharmony_ci
171cb0ef41Sopenharmony_ci  get pending () {
181cb0ef41Sopenharmony_ci    return this[kPool][kPending]
191cb0ef41Sopenharmony_ci  }
201cb0ef41Sopenharmony_ci
211cb0ef41Sopenharmony_ci  get queued () {
221cb0ef41Sopenharmony_ci    return this[kPool][kQueued]
231cb0ef41Sopenharmony_ci  }
241cb0ef41Sopenharmony_ci
251cb0ef41Sopenharmony_ci  get running () {
261cb0ef41Sopenharmony_ci    return this[kPool][kRunning]
271cb0ef41Sopenharmony_ci  }
281cb0ef41Sopenharmony_ci
291cb0ef41Sopenharmony_ci  get size () {
301cb0ef41Sopenharmony_ci    return this[kPool][kSize]
311cb0ef41Sopenharmony_ci  }
321cb0ef41Sopenharmony_ci}
331cb0ef41Sopenharmony_ci
341cb0ef41Sopenharmony_cimodule.exports = PoolStats
35

Indexes created Thu Nov 07 10:32:03 CST 2024