1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-29 16:30:56 -05:00
denoland-deno/tests/subdir/test_worker.ts
andy finch b0a23beb8f Add web worker JS API (#1993)
* Refactored the way worker polling is scheduled and errors are handled.
* Share the worker future as a Shared
2019-04-01 15:09:59 -04:00

7 lines
94 B
TypeScript

onmessage = function(e) {
console.log(e.data);
postMessage(e.data);
workerClose();
};