Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
34 lines
552 B
Text
34 lines
552 B
Text
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
|