import * as tsplus_module_1 from "@effect/core/io/Effect/operations/succeedNow";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/failCauseNow";
import * as tsplus_module_3 from "@effect/core/io/Effect/operations/suspendSucceed";
/**
 * Returns an effect from a `Exit` value.
 *
 * @tsplus static ets/Effect/Ops done
 */

export function done(exit, __tsplusTrace) {
  return tsplus_module_3.suspendSucceed(() => {
    const exit0 = exit();
    return exit0._tag === "Success" ? tsplus_module_1.succeedNow(exit0.value, __tsplusTrace) : tsplus_module_2.failCauseNow(exit0.cause, __tsplusTrace);
  }, __tsplusTrace);
}
//# sourceMappingURL=done.mjs.map