promises/Runtime.ts
This module provides runtime management of the promise SDK.
Added in v0.4.0
configure
Section titled “configure”Injects Effect services into the global context of the Promise-based SDK as an escape hatch.
Signature
export declare const configure: <E>(layer: Layer.Layer<never, E, never>) => Promise<void>Added in v0.4.0
dispose
Section titled “dispose”Signature
export declare const dispose: () => Promise<void>Added in v0.4.0
Signature
export declare const get: () => GlobalRuntimeTypeAdded in v0.4.0
Wrap an Effect-returning function into a Promise-returning function. Uses the global runtime by default, or a provided override.
Signature
export declare const wrap: <Args extends ReadonlyArray<unknown>, A, E>( method: (...args: Args) => Effect.Effect<A, E>, runtime?: GlobalRuntimeType) => (...args: Args) => Promise<A>Added in v0.4.0