// ets_tracing: off import * as Fiber from "../Fiber/index.js" import { chain_, succeedWith } from "./core.js" import type { Effect, IO } from "./effect.js" /** * Creates a `Effect` value that represents the exit value of the specified * fiber. */ export function fromFiber( fiber: () => Fiber.Fiber, __trace?: string ): IO { return chain_(succeedWith(fiber), Fiber.join, __trace) } /** * Creates a `Effect` value that represents the exit value of the specified * fiber. */ export function fromFiberM( fiber: Effect>, __trace?: string ): Effect { return chain_(fiber, Fiber.join, __trace) }