MCPcopy Create free account
hub / github.com/Effect-TS/effect / unsafeForkUnstarted

Function unsafeForkUnstarted

packages/effect/src/internal/fiberRuntime.ts:2469–2477  ·  view source on GitHub ↗
(
  effect: Effect.Effect<A, E, R>,
  parentFiber: FiberRuntime<B, E2>,
  parentRuntimeFlags: RuntimeFlags.RuntimeFlags,
  overrideScope: fiberScope.FiberScope | null = null
)

Source from the content-addressed store, hash-verified

2467
2468/** @internal */
2469export const unsafeForkUnstarted = <A, E, R, E2, B>(
2470 effect: Effect.Effect<A, E, R>,
2471 parentFiber: FiberRuntime<B, E2>,
2472 parentRuntimeFlags: RuntimeFlags.RuntimeFlags,
2473 overrideScope: fiberScope.FiberScope | null = null
2474): FiberRuntime<A, E> => {
2475 const childFiber = unsafeMakeChildFiber(effect, parentFiber, parentRuntimeFlags, overrideScope)
2476 return childFiber
2477}
2478
2479/** @internal */
2480export const unsafeMakeChildFiber = <A, E, R, E2, B>(

Callers 1

runFiberFunction · 0.85

Calls 1

unsafeMakeChildFiberFunction · 0.85

Tested by

no test coverage detected