import { WorkerSandbox } from "./worker_sandbox.ts"; import type { SandboxFactory } from "./sandbox.ts"; export function createSandbox(workerUrl: URL): SandboxFactory { return (plug) => new WorkerSandbox(plug, workerUrl); }