import { sandbox } from "./sandbox"
import { unsandbox } from "./unsandbox"
/**
 * Companion helper to `sandbox`. Allows recovery, and partial recovery, from
 * errors and defects alike.
 *
 * @dataFirst sandboxWith_
 */

export function sandboxWith(f, __trace) {
  return (self) => sandboxWith_(self, f, __trace)
}
/**
 * Companion helper to `sandbox`. Allows recovery, and partial recovery, from
 * errors and defects alike.
 */

export function sandboxWith_(self, f, __trace) {
  return unsandbox(f(sandbox(self)), __trace)
}
//# sourceMappingURL=sandboxWith.js.map
