/** * Get the singleton worker pool instance. * Initialization is handled explicitly via initializeWorkerPoolsAsync() in the renderer. * Accessing this without prior initialization will return an uninitialized pool instance. * * @returns The worker pool instance */ exportfunctiongetWorkerPool(): MatchingWorkerPool { workerPoolInstance ??= newMatchingWorkerPool(); returnworkerPoolInstance; }
/** * Export the singleton instance for convenience. */ exportconstworkerPool = getWorkerPool();
Description
Manages the singleton matching worker pool to avoid circular dependencies and centralize initialization.
Source