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

Function makeRuntimePromise

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

Source from the content-addressed store, hash-verified

155 * @categories constructors
156 */
157export const makeRuntimePromise = <R = never, A = unknown, E = unknown>(): Effect.Effect<
158 <XE extends E, XA extends A>(
159 effect: Effect.Effect<XA, XE, R>,
160 options?: Runtime.RunForkOptions | undefined
161 ) => Promise<XA>,
162 never,
163 Scope.Scope | R
164> =>
165 Effect.flatMap(
166 make<A, E>(),
167 (self) => runtimePromise(self)<R>()
168 )
169
170const internalFiberIdId = -1
171const 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…