Skip to content

Commit f272001

Browse files
committed
wip: ...
[ci skip]
1 parent ee6206b commit f272001

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

src/WorkerManager.ts

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ class WorkerManager<Manifest extends WorkerManifest> {
5959
}) {
6060
this.logger = logger;
6161
this.pool = new WorkerPool(cores, workerFactory);
62-
// TODO: Add support for running functions main thread?
6362
this.methods = new Proxy(manifest, {
6463
get: (target: Manifest, prop: string | symbol) => {
6564
if (typeof prop === 'symbol') return;

src/WorkerPool.ts

-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ class WorkerPool {
7171
});
7272
}
7373

74-
// TODO: we need to handle a worker that doesn't respond at all. Timeout should terminate and avoid re-creating
7574
protected addWorker() {
7675
const worker = this.workerFactory();
7776
let workerError: Error;

src/types.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ type WorkerTaskInformation<T extends string = string, D = unknown> = {
88
transferList?: Array<TransferListItem>;
99
};
1010

11-
// TODO: structure this like a normal function as much as possible.
12-
// TODO: limit types to primitives and transferrables.
11+
// Input data is any type supported by the HTML structured clone algorithm
1312
type WorkerFunction<I = unknown, O = unknown> = (
1413
data: I,
1514
transferList?: Array<TransferListItem>,

0 commit comments

Comments
 (0)