mirror of
https://github.com/denoland/deno.git
synced 2024-12-24 16:19:12 -05:00
7 lines
170 B
JavaScript
7 lines
170 B
JavaScript
|
self.onmessage = (params) => {
|
||
|
const workerId = params.data;
|
||
|
console.log("message received in worker %d", workerId);
|
||
|
self.postMessage(workerId);
|
||
|
self.close();
|
||
|
};
|