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

Function fork

packages/effect/src/internal/fiberRuntime.ts:2419–2420  ·  view source on GitHub ↗
(self: Effect.Effect<A, E, R>)

Source from the content-addressed store, hash-verified

2417
2418/* @internal */
2419export const fork = <A, E, R>(self: Effect.Effect<A, E, R>): Effect.Effect<Fiber.RuntimeFiber<A, E>, never, R> =>
2420 core.withFiberRuntime((state, status) => core.succeed(unsafeFork(self, state, status.runtimeFlags)))
2421
2422/* @internal */
2423export const forkDaemon = <A, E, R>(self: Effect.Effect<A, E, R>): Effect.Effect<Fiber.RuntimeFiber<A, E>, never, R> =>

Callers 1

fiberRuntime.tsFile · 0.70

Calls 5

scopeUnsafeAddFinalizerFunction · 0.85
syncMethod · 0.80
unsafeForkFunction · 0.70
scopeUnsafeMakeFunction · 0.70
setMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…