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

Function makeRuntimePromise

packages/effect/src/FiberHandle.ts:156–167  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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