• 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).

    export function areWorkersAvailable(): number {
    const matchingPool = getWorkerPool();
    return matchingPool.getAvailableWorkerCount?.() ?? 0;
    }