// ets_tracing: off import type { FiberContext } from "../Fiber/index.js" import { fork } from "../Managed/fork.js" import type { Managed } from "../Managed/managed.js" import type { Effect } from "./effect.js" import { toManaged } from "./toManaged.js" /** * Forks the fiber in a `Managed`. Using the `Managed` value will * execute the effect in the fiber, while ensuring its interruption when * the effect supplied to `use` completes. */ export function forkManaged( self: Effect, __trace?: string ): Managed> { return fork(toManaged(self), __trace) }