MCPcopy Create free account
hub / github.com/effect-app/libs / makeRuntime

Function makeRuntime

repos/effect/packages/effect/src/FiberSet.ts:189–200  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

187 * const fiber2 = runFork(Effect.succeed("world"))
188 *
189 * return [yield* Fiber.join(fiber1), yield* Fiber.join(fiber2)]
190 * })
191 *
192 * const actual = await Effect.runPromise(Effect.scoped(program))
193 * actual // => ["hello", "world"]
194 * ```
195 *
196 * @category constructors
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>),

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…