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

Function fork

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

Source from the content-addressed store, hash-verified

2427
2428/* @internal */
2429export const fork = <A, E, R>(self: Effect.Effect<A, E, R>): Effect.Effect<Fiber.RuntimeFiber<A, E>, never, R> =>
2430 core.withFiberRuntime((state, status) => core.succeed(unsafeFork(self, state, status.runtimeFlags)))
2431
2432/* @internal */
2433export 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