Skip to content

Commit

Permalink
common: remove main thread limitation on zygote
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Jul 30, 2024
1 parent dfdc416 commit 37cf7aa
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions common/src/zygote.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 37cf7aa

Please sign in to comment.