effect-io-ai

Package: effect
Module: Effect

Effect.contextWithEffect

Accesses the context and performs an effectful transformation.

Details

This function retrieves the context and allows you to transform it effectually using another effect. It is useful when the transformation involves asynchronous or effectful operations.

See

Signature

declare const contextWithEffect: <R2, A, E, R>(f: (context: Context.Context<R2>) => Effect<A, E, R>) => Effect<A, E, R | R2>

Source

Since v2.0.0