Move WorkerPoolContext into WorkerPool.ts
This commit is contained in:
@@ -1,3 +1,5 @@
|
||||
import { createContext } from "react";
|
||||
|
||||
import {
|
||||
addPluginInOrder,
|
||||
decrementPending,
|
||||
@@ -78,4 +80,6 @@ export class WorkerPool {
|
||||
}
|
||||
this.availableWorkers = [];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export const WorkerPoolContext = createContext<WorkerPool | null>(null);
|
||||
Reference in New Issue
Block a user