2023 - Day 5
This commit is contained in:
8
2023/05/worker.ts
Normal file
8
2023/05/worker.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
//deno-lint-ignore ban-ts-comment
|
||||
//@ts-ignore
|
||||
self.onmessage = async (e) => {
|
||||
const { filename } = e.data;
|
||||
const text = await Deno.readTextFile(filename);
|
||||
console.log(text);
|
||||
self.close();
|
||||
};
|
||||
Reference in New Issue
Block a user