executor-worker.js (276B)
1 importScripts('./dispatcher.js'); 2 3 const params = new URLSearchParams(location.search); 4 const uuid = params.get('uuid'); 5 6 let executeOrders = async function() { 7 while(true) { 8 let task = await receive(uuid); 9 eval(`(async () => {${task}})()`); 10 } 11 }; 12 executeOrders();