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

Function runtime

repos/effect/packages/effect/src/FiberSet.ts:542–561  ·  view source on GitHub ↗
(self: FiberSet<A, E>)

Source from the content-addressed store, hash-verified

540 * }).pipe(
541 * Effect.scoped // The fibers will be interrupted when the scope is closed
542 * )
543 *
544 * const actual = await Effect.runPromise(Effect.provideService(program, Users, {
545 * getAll: Effect.succeed([])
546 * }))
547 * actual // => 0
548 * ```
549 *
550 * @category combinators
551 * @since 2.0.0
552 */
553export const runtime: <A, E>(
554 self: FiberSet<A, E>
555) => <R = never>() => Effect.Effect<
556 <XE extends E, XA extends A>(
557 effect: Effect.Effect<XA, XE, R>,
558 options?:
559 | Effect.RunOptions & { readonly propagateInterruption?: boolean | undefined }
560 | undefined
561 ) => Fiber.Fiber<XA, XE>,
562 never,
563 R
564> = <A, E>(self: FiberSet<A, E>) => <R>() =>

Callers 2

makeRuntimeFunction · 0.70
runtimePromiseFunction · 0.70

Calls 3

runForkFunction · 0.85
mapMethod · 0.65
contextMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…