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

Function runPromise

packages/effect/src/ManagedRuntime.ts:455–461  ·  view source on GitHub ↗
(effect: Effect.Effect<A, E, R>, options?: {
      readonly signal?: AbortSignal | undefined
    })

Source from the content-addressed store, hash-verified

453 Effect.runPromiseExitWith(self.cachedContext)(effect, mergeRunOptions(options))
454 },
455 runPromise<A, E>(effect: Effect.Effect<A, E, R>, options?: {
456 readonly signal?: AbortSignal | undefined
457 }): Promise<A> {
458 return self.cachedContext === undefined ?
459 Effect.runPromise(provide(self, effect), mergeRunOptions(options)) :
460 Effect.runPromiseWith(self.cachedContext)(effect, mergeRunOptions(options))
461 }
462 }
463 return self
464}

Callers 4

closeFunction · 0.70
closeAndReportErrorFunction · 0.70
testLayerFunction · 0.50
testGlobFunction · 0.50

Calls 2

mergeRunOptionsFunction · 0.85
provideFunction · 0.70

Tested by

no test coverage detected