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

Function makeRuntimePromise

repos/effect/packages/effect/src/FiberMap.ts:264–280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

262 * })
263 *
264 * const actual = await Effect.runPromise(Effect.scoped(program))
265 * actual // => ["Hello", "World"]
266 * ```
267 *
268 * @category constructors
269 * @since 3.13.0
270 */
271export const makeRuntimePromise = <R, K, A = unknown, E = unknown>(): Effect.Effect<
272 <XE extends E, XA extends A>(
273 key: K,
274 effect: Effect.Effect<XA, XE, R>,
275 options?:
276 | Effect.RunOptions & {
277 readonly onlyIfMissing?: boolean | undefined
278 }
279 | undefined
280 ) => Promise<XA>,
281 never,
282 Scope.Scope | R
283> =>

Callers

nothing calls this directly

Calls 2

makeFunction · 0.70
runtimePromiseFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…