INNER CODE UNIT · TypeScript

stopSandboxAction

e2b-dev/surf · app/actions.ts:17

export async function stopSandboxAction(sandboxId: string) {
  try {
    const desktop = await Sandbox.connect(sandboxId);
    await desktop.kill();
    return true;
  } catch (error) {
    console.error("Failed to stop sandbox:", error);
    return false;
  }
}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…