MCPcopy Index your code
hub / github.com/Effect-TS/effect / makeRuntimePromise

Function makeRuntimePromise

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

Source from the content-addressed store, hash-verified

169 * @categories constructors
170 */
171export const makeRuntimePromise = <R, K, A = unknown, E = unknown>(): Effect.Effect<
172 <XE extends E, XA extends A>(
173 key: K,
174 effect: Effect.Effect<XA, XE, R>,
175 options?:
176 | Runtime.RunForkOptions & {
177 readonly onlyIfMissing?: boolean | undefined
178 }
179 | undefined
180 ) => Promise<XA>,
181 never,
182 Scope.Scope | R
183> =>
184 Effect.flatMap(
185 make<K, A, E>(),
186 (self) => runtimePromise(self)<R>()
187 )
188
189const internalFiberIdId = -1
190const internalFiberId = FiberId.make(internalFiberIdId, 0)

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…