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

Function makeRuntimePromise

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

Source from the content-addressed store, hash-verified

282 * @since 3.13.0
283 */
284export const makeRuntimePromise = <R, K, A = unknown, E = unknown>(): Effect.Effect<
285 <XE extends E, XA extends A>(
286 key: K,
287 effect: Effect.Effect<XA, XE, R>,
288 options?:
289 | Effect.RunOptions & {
290 readonly onlyIfMissing?: boolean | undefined
291 }
292 | undefined
293 ) => Promise<XA>,
294 never,
295 Scope.Scope | R
296> =>
297 Effect.flatMap(
298 make<K, A, E>(),
299 (self) => runtimePromise(self)<R>()
300 )
301
302const internalFiberId = -1
303const isInternalInterruption = Filter.toPredicate(Filter.compose(

Callers

nothing calls this directly

Calls 2

makeFunction · 0.70
runtimePromiseFunction · 0.70

Tested by

no test coverage detected