common: remove main thread limitation on zygote

This commit is contained in:
Koushik Dutta
2024-07-30 09:11:07 -07:00
parent dfdc41626b
commit 37cf7aada0

View File

@@ -6,9 +6,6 @@ import os from 'os';
export type Zygote<T> = () => PluginFork<T>;
export function createZygote<T>(): Zygote<T> {
if (!worker_threads.isMainThread)
return;
let zygote = sdk.fork<T>();
function* next() {
while (true) {