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

Function makeRuntime

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

Source from the content-addressed store, hash-verified

206 * @since 2.0.0
207 */
208export const makeRuntime = <R = never, A = unknown, E = unknown>(): Effect.Effect<
209 (<XE extends E, XA extends A>(
210 effect: Effect.Effect<XA, XE, R>,
211 options?: (Effect.RunOptions & { readonly propagateInterruption?: boolean | undefined }) | undefined
212 ) => Fiber.Fiber<XA, XE>),
213 never,
214 Scope.Scope | R
215> =>
216 Effect.flatMap(
217 make<A, E>(),
218 (self) => runtime(self)<R>()
219 )
220
221/**
222 * Creates a scoped run function that forks effects into a new `FiberSet` and

Callers

nothing calls this directly

Calls 2

makeFunction · 0.70
runtimeFunction · 0.70

Tested by

no test coverage detected