dispatchTaskTo(worker) {
        const task = this.pendingTasksQueue.dequeue();
        this.ongoingTasksQueue.enqueue(task);

        worker.handle(task);

        if (this.options.hasTimeout()) {
            task.timer = setTimeout(() => this.handleWorkerTimeout(worker), this.options.taskTimeout);
        }
    }
Sends a pending task to the worker.

@param {Worker} worker
@private