Returns the available worker count from the matching pool.
For pool-specific availability checks, call getAvailableWorkerCount() directly on the pool instance.
This function is primarily used for UI indicators of worker readiness.
Returns number
Number of available workers in the matching pool (0 if unavailable).
Source
exportfunctionareWorkersAvailable(): number { constmatchingPool = getWorkerPool(); returnmatchingPool.getAvailableWorkerCount?.() ?? 0; }
Returns the available worker count from the matching pool. For pool-specific availability checks, call getAvailableWorkerCount() directly on the pool instance. This function is primarily used for UI indicators of worker readiness.