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

Function runPromiseExit

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

Source from the content-addressed store, hash-verified

111 internalRuntime.unsafeRunSync(self.cachedRuntime)(effect)
112 },
113 runPromiseExit<A, E>(effect: Effect.Effect<A, E, R>, options?: {
114 readonly signal?: AbortSignal | undefined
115 }): Promise<Exit<A, E | ER>> {
116 return self.cachedRuntime === undefined ?
117 internalRuntime.unsafeRunPromiseExitEffect(provide(self, effect), options) :
118 internalRuntime.unsafeRunPromiseExit(self.cachedRuntime)(effect, options)
119 },
120 runCallback<A, E>(
121 effect: Effect.Effect<A, E, R>,
122 options?: Runtime.RunCallbackOptions<A, E | ER> | undefined

Callers

nothing calls this directly

Calls 1

provideFunction · 0.85

Tested by

no test coverage detected