Searched refs:metricsCh (Results 1 – 1 of 1) sorted by relevance
21 assert.ok(msg.metricsCh instanceof MessagePort);22 msg.metricsCh.on('message', mustCallAtLeast(workerOnMetricsMsg, 1));45 let metricsCh; variable57 metricsCh = new MessageChannel();58 worker.postMessage({ metricsCh: metricsCh.port1 }, [ metricsCh.port1 ]); property61 metricsCh.port2.once('message', mustCall(checkWorkerIdle));62 metricsCh.port2.postMessage({ cmd: 'elu' });99 metricsCh.port2.postMessage({ cmd: 'spin', dur: 50 });100 metricsCh.port2.once('message', (wElu) => {108 metricsCh.port2.postMessage({ cmd: 'close' });