MCPcopy Create free account
hub / github.com/TanStack/router / constructor

Method constructor

packages/start-plugin-core/src/queue.ts:23–31  ·  view source on GitHub ↗
(config: PoolConfig = defaultConfig)

Source from the content-addressed store, hash-verified

21 private currentConcurrency: number
22
23 constructor(config: PoolConfig = defaultConfig) {
24 const { concurrency, started, tasks } = {
25 ...defaultConfig,
26 ...config,
27 }
28 this.running = started!
29 this.pending = tasks as Array<() => Promise<any>>
30 this.currentConcurrency = concurrency!
31 }
32
33 private tick() {
34 if (!this.running) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected