MCPcopy Index your code
hub / github.com/nodejs/node / Pool

Class Pool

deps/undici/src/types/pool.d.ts:10–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8type PoolConnectOptions = Omit<Dispatcher.ConnectOptions, 'origin'>
9
10declare class Pool extends Dispatcher {
11 constructor (url: string | URL, options?: Pool.Options)
12 /** `true` after `pool.close()` has been called. */
13 closed: boolean
14 /** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */
15 destroyed: boolean
16 /** Aggregate stats for a Pool. */
17 readonly stats: TPoolStats
18
19 // Override dispatcher APIs.
20 override connect (
21 options: PoolConnectOptions
22 ): Promise<Dispatcher.ConnectData>
23 override connect (
24 options: PoolConnectOptions,
25 callback: (err: Error | null, data: Dispatcher.ConnectData) => void
26 ): void
27}
28
29declare namespace Pool {
30 export type PoolStats = TPoolStats

Callers 5

get_api_header_filesMethod · 0.50
workbench.pyFile · 0.50
merge_parallelFunction · 0.50
write_instrumentedFunction · 0.50
mergeFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…