MCPcopy Index your code
hub / github.com/Effect-TS/effect / unsafeFork

Function unsafeFork

packages/effect/src/internal/fiberRuntime.ts:2447–2456  ·  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

2445
2446/** @internal */
2447export const unsafeFork = <A, E, R, E2, B>(
2448 effect: Effect.Effect<A, E, R>,
2449 parentFiber: FiberRuntime<B, E2>,
2450 parentRuntimeFlags: RuntimeFlags.RuntimeFlags,
2451 overrideScope: fiberScope.FiberScope | null = null
2452): FiberRuntime<A, E> => {
2453 const childFiber = unsafeMakeChildFiber(effect, parentFiber, parentRuntimeFlags, overrideScope)
2454 childFiber.resume(effect)
2455 return childFiber
2456}
2457
2458/** @internal */
2459export const unsafeForkUnstarted = <A, E, R, E2, B>(

Callers 4

forkFunction · 0.70
forkWithScopeOverrideFunction · 0.70
raceAllFunction · 0.70
runtime.tsFile · 0.70

Calls 2

unsafeMakeChildFiberFunction · 0.85
resumeMethod · 0.80

Tested by

no test coverage detected