/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/undici/src/lib/util/stats.js
32 строки
600 B
Node.js GitHub Bot
deps: update undici to 7.9.0
18 май 2025, 19:09
Не верифицирован
18 май 2025, 19:09
73e7bd1
Код
Авторство
О чём код?
'use strict' const { kConnected, kPending, kRunning, kSize, kFree, kQueued } = require('../core/symbols') class ClientStats { constructor (client) { this.connected = client[kConnected] this.pending = client[kPending] this.running = client[kRunning] this.size = client[kSize] } } class PoolStats { constructor (pool) { this.connected = pool[kConnected] this.free = pool[kFree] this.pending = pool[kPending] this.queued = pool[kQueued] this.running = pool[kRunning] this.size = pool[kSize] } } module.exports = { ClientStats, PoolStats }