Skip to content

Commit 38f536a

Browse files
committed
removed utility to remove worker files.
1 parent 84d1da9 commit 38f536a

File tree

3 files changed

+0
-31
lines changed

3 files changed

+0
-31
lines changed

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,3 @@ new Thread(someFunction, "module", ['import Something from "../some.bundle.js";'
5656
| stop() | calls terminate on the worker. |
5757
| remove() | Removes the current worker file from the temporary folder. NOTE: Can be used while the program is running (calls stop()..) |
5858
| onMessage(callback: (e: T) =>void) | Bind to the worker to receive messages |
59-
60-
### Utilities
61-
62-
| Method / variable | Description |
63-
|---------------------- |--------------------------------------------------------------------------------------------------------------------- |
64-
| cleanWorkerImports() | Removes all worker related imports from the temp folder.<br>WARNING: Do not run this while your program is running. |

test.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,6 @@ Deno.test("incorrect file extension throws error", (): void => {
1616
["import Observe from 'https://raw.githubusercontent.com/duart38/Observe/master/Observe.ts'"],
1717
);
1818
});
19-
assertThrows(() => {
20-
let tr = new Thread(
21-
(e) => {
22-
return 1;
23-
},
24-
"module",
25-
["import {cleanWorkerFolder} from './utils.ts'"],
26-
);
27-
});
2819
});
2920

3021
Deno.test("Worker takes in external function", async () => {

utils.ts

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)