Move WorkerPoolContext into WorkerPool.ts

This commit is contained in:
2022-03-04 23:53:36 -05:00
parent eebae85a65
commit 5dd061627a
3 changed files with 8 additions and 6 deletions

View File

@@ -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);