Skip to content

Commit

Permalink
removed utility to remove worker files.
Browse files Browse the repository at this point in the history
  • Loading branch information
duart38 committed Apr 14, 2021
1 parent 84d1da9 commit 38f536a
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 31 deletions.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,3 @@ new Thread(someFunction, "module", ['import Something from "../some.bundle.js";'
| stop() | calls terminate on the worker. |
| remove() | Removes the current worker file from the temporary folder. NOTE: Can be used while the program is running (calls stop()..) |
| onMessage(callback: (e: T) =>void) | Bind to the worker to receive messages |

### Utilities

| Method / variable | Description |
|---------------------- |--------------------------------------------------------------------------------------------------------------------- |
| cleanWorkerImports() | Removes all worker related imports from the temp folder.<br>WARNING: Do not run this while your program is running. |
9 changes: 0 additions & 9 deletions test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,6 @@ Deno.test("incorrect file extension throws error", (): void => {
["import Observe from 'https://raw.githubusercontent.com/duart38/Observe/master/Observe.ts'"],
);
});
assertThrows(() => {
let tr = new Thread(
(e) => {
return 1;
},
"module",
["import {cleanWorkerFolder} from './utils.ts'"],
);
});
});

Deno.test("Worker takes in external function", async () => {
Expand Down
16 changes: 0 additions & 16 deletions utils.ts

This file was deleted.

0 comments on commit 38f536a

Please sign in to comment.