public async execute (data: Data): Promise<Response> {
// Configure worker to handle message with the specified task
const worker = this.chooseWorker()
const res = this.internalExecute(worker, this.nextMessageId)
this.checkAndEmitBusy()
this.sendToWorker(worker, {
public async execute (data: Data): Promise<Response> {
// Configure worker to handle message with the specified task
const worker = this.chooseWorker()
const res = this.internalExecute(worker, this.nextMessageId)
this.checkAndEmitBusy()
this.sendToWorker(worker, {