Function: createSandbox()
ts
function createSandbox(options: CreateSandboxOptions): Promise<SandboxHandle>;Defined in: src/batteries/sandbox/manager.ts:207
Admit one process-global sandbox. Drift is detection, not prevention: SRT consults its proxies per request, so a widening can affect an already-spawned child for its lifetime.
Parameters
| Parameter | Type |
|---|---|
options | CreateSandboxOptions |
Returns
Promise<SandboxHandle>