import * as tsplus_module_1 from "@effect/core/io/Fiber/operations/join";
import * as tsplus_module_2 from "@effect/core/io/Effect/operations/flatMap";
import * as tsplus_module_3 from "@effect/core/io/Effect/operations/suspendSucceed";
/**
 * Creates an `Effect` value that represents the exit value of the specified
 * fiber.
 *
 * @tsplus static ets/Effect/Ops fromFiberEffect
 */

export function fromFiberEffect(fiber, __tsplusTrace) {
  return tsplus_module_3.suspendSucceed(() => tsplus_module_2.flatMap_(fiber(), fiber => tsplus_module_1.join(fiber, __tsplusTrace), __tsplusTrace), __tsplusTrace);
}
//# sourceMappingURL=fromFiberEffect.mjs.map