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

Function makeRuntime

repos/effect/packages/effect/src/FiberHandle.ts:184–202  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

182 *
183 * // The second fiber will interrupt the first
184 * const resultA = yield* Fiber.await(fiberA)
185 * const resultB = yield* Fiber.await(fiberB)
186 * return [resultA, resultB]
187 * }).pipe(Effect.scoped)
188 *
189 * const actual = await Effect.runPromise(program)
190 * actual // => [Exit.failCause(Cause.interrupt(-1)), Exit.succeed("second")]
191 * ```
192 *
193 * @category constructors
194 * @since 2.0.0
195 */
196export const makeRuntime = <R, E = unknown, A = unknown>(): Effect.Effect<
197 <XE extends E, XA extends A>(
198 effect: Effect.Effect<XA, XE, R>,
199 options?:
200 | {
201 readonly signal?: AbortSignal | undefined
202 readonly scheduler?: Scheduler | undefined
203 readonly onlyIfMissing?: boolean | undefined
204 readonly propagateInterruption?: boolean | undefined
205 }

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…