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

Function makeRuntime

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

Source from the content-addressed store, hash-verified

197 * @since 2.0.0
198 */
199export const makeRuntime = <R = never, A = unknown, E = unknown>(): Effect.Effect<
200 (<XE extends E, XA extends A>(
201 effect: Effect.Effect<XA, XE, R>,
202 options?: (Effect.RunOptions & { readonly propagateInterruption?: boolean | undefined }) | undefined
203 ) => Fiber.Fiber<XA, XE>),
204 never,
205 Scope.Scope | R
206> =>
207 Effect.flatMap(
208 make<A, E>(),
209 (self) => runtime(self)<R>()
210 )
211
212/**
213 * 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