// ets_tracing: off import type { Exit } from "../Exit/exit.js" import { halt, succeed } from "./core.js" import type { Effect } from "./effect.js" /** * Returns an effect from a `Exit` value. */ export function done(exit: Exit, __trace?: string): Effect { switch (exit._tag) { case "Success": { return succeed(exit.value, __trace) } case "Failure": { return halt(exit.cause, __trace) } } }