source: node_modules/undici/types/balanced-pool.d.ts

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: 609 bytes
Line 
1import Pool from './pool'
2import Dispatcher from './dispatcher'
3import { URL } from 'url'
4
5export default BalancedPool
6
7declare class BalancedPool extends Dispatcher {
8 constructor(url: string | string[] | URL | URL[], options?: Pool.Options);
9
10 addUpstream(upstream: string | URL): BalancedPool;
11 removeUpstream(upstream: string | URL): BalancedPool;
12 upstreams: Array<string>;
13
14 /** `true` after `pool.close()` has been called. */
15 closed: boolean;
16 /** `true` after `pool.destroyed()` has been called or `pool.close()` has been called and the pool shutdown has completed. */
17 destroyed: boolean;
18}
Note: See TracBrowser for help on using the repository browser.