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

Function makeRuntimePromise

packages/effect/src/FiberSet.ts:249–260  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

247 * @since 3.13.0
248 */
249export const makeRuntimePromise = <R = never, A = unknown, E = unknown>(): Effect.Effect<
250 (<XE extends E, XA extends A>(
251 effect: Effect.Effect<XA, XE, R>,
252 options?: (Effect.RunOptions & { readonly propagateInterruption?: boolean | undefined }) | undefined
253 ) => Promise<XA>),
254 never,
255 R | Scope.Scope
256> =>
257 Effect.flatMap(
258 make<A, E>(),
259 (self) => runtimePromise(self)<R>()
260 )
261
262const internalFiberId = -1
263const isInternalInterruption = Filter.toPredicate(Filter.compose(

Callers

nothing calls this directly

Calls 2

makeFunction · 0.70
runtimePromiseFunction · 0.70

Tested by

no test coverage detected