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

Function makeRuntimePromise

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

Source from the content-addressed store, hash-verified

258 * @since 3.13.0
259 */
260export const makeRuntimePromise = <R = never, A = unknown, E = unknown>(): Effect.Effect<
261 (<XE extends E, XA extends A>(
262 effect: Effect.Effect<XA, XE, R>,
263 options?: (Effect.RunOptions & { readonly propagateInterruption?: boolean | undefined }) | undefined
264 ) => Promise<XA>),
265 never,
266 R | Scope.Scope
267> =>
268 Effect.flatMap(
269 make<A, E>(),
270 (self) => runtimePromise(self)<R>()
271 )
272
273const internalFiberId = -1
274const isInternalInterruption = Filter.toPredicate(Filter.compose(

Callers

nothing calls this directly

Calls 2

makeFunction · 0.70
runtimePromiseFunction · 0.70

Tested by

no test coverage detected