MCPcopy
hub / github.com/Effect-TS/effect / runFork

Function runFork

packages/effect/src/internal/managedRuntime.ts:98–102  ·  view source on GitHub ↗
(effect: Effect.Effect<A, E, R>, options?: Runtime.RunForkOptions)

Source from the content-addressed store, hash-verified

96 return Scope.close(self.scope, core.exitVoid)
97 }),
98 runFork<A, E>(effect: Effect.Effect<A, E, R>, options?: Runtime.RunForkOptions): Fiber.RuntimeFiber<A, E | ER> {
99 return self.cachedRuntime === undefined ?
100 internalRuntime.unsafeForkEffect(provide(self, effect), options) :
101 internalRuntime.unsafeFork(self.cachedRuntime)(effect, options)
102 },
103 runSyncExit<A, E>(effect: Effect.Effect<A, E, R>): Exit<A, E | ER> {
104 return self.cachedRuntime === undefined ?
105 internalRuntime.unsafeRunSyncExitEffect(provide(self, effect)) :

Callers 2

startFunction · 0.70
nextFunction · 0.70

Calls 1

provideFunction · 0.85

Tested by

no test coverage detected