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

Function runPromise

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

Source from the content-addressed store, hash-verified

126 internalRuntime.unsafeRunCallback(self.cachedRuntime)(effect, options)
127 },
128 runPromise<A, E>(effect: Effect.Effect<A, E, R>, options?: {
129 readonly signal?: AbortSignal | undefined
130 }): Promise<A> {
131 return self.cachedRuntime === undefined ?
132 internalRuntime.unsafeRunPromiseEffect(provide(self, effect), options) :
133 internalRuntime.unsafeRunPromise(self.cachedRuntime)(effect, options)
134 }
135 })
136 return self
137}

Callers

nothing calls this directly

Calls 1

provideFunction · 0.85

Tested by

no test coverage detected