Lines Matching refs:response
591 const response = this.#worker.receiveMessageSync();
592 if (response == null || response.message.status === 'exit') { return; }
593 const { preloadScripts } = this.#unwrapMessage(response);
627 // On the next lines, the main thread will await a response from the worker thread that might
636 let response;
638 debug('wait for async response from worker', { method, args });
642 response = receiveMessageOnPort(asyncCommChannel.port1);
643 } while (response == null);
644 debug('got async response from worker', { method, args }, this.#lock);
651 const body = this.#unwrapMessage(response);
670 let response;
672 debug('wait for sync response from worker', { method, args });
677 response = this.#worker.receiveMessageSync();
678 } while (response == null);
679 debug('got sync response from worker', { method, args });
680 if (response.message.status === 'never-settle') {
682 } else if (response.message.status === 'exit') {
683 process.exit(response.message.body);
685 return this.#unwrapMessage(response);
688 #unwrapMessage(response) {
689 if (response.message.status === 'never-settle') {
692 const { status, body } = response.message;