processQueue() {
        if (!this.pendingTasksQueue.isEmpty()) {
            const worker = this.pickWorker();

            if (worker) {
                this.dispatchTaskTo(worker);
            }
        }

        this.checkShutdown();
    }
Picks up the next task that was waiting in the queue and tries to dispatch it to a worker.

@private