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

Function makeRuntimePromise

packages/effect/src/FiberMap.ts:271–287  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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> =>
284 Effect.flatMap(
285 make<K, A, E>(),
286 (self) => runtimePromise(self)<R>()
287 )
288
289const internalFiberId = -1
290const isInternalInterruption = Filter.toPredicate(Filter.compose(

Callers

nothing calls this directly

Calls 2

makeFunction · 0.70
runtimePromiseFunction · 0.70

Tested by

no test coverage detected