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

Function makeRuntime

packages/effect/src/FiberSet.ts:138–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

136 * @categories constructors
137 */
138export const makeRuntime = <R = never, A = unknown, E = unknown>(): Effect.Effect<
139 <XE extends E, XA extends A>(
140 effect: Effect.Effect<XA, XE, R>,
141 options?: Runtime.RunForkOptions | undefined
142 ) => Fiber.RuntimeFiber<XA, XE>,
143 never,
144 Scope.Scope | R
145> =>
146 Effect.flatMap(
147 make<A, E>(),
148 (self) => runtime(self)<R>()
149 )
150
151/**
152 * Create an Effect run function that is backed by a FiberSet.

Callers

nothing calls this directly

Calls 2

makeFunction · 0.70
runtimeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…