Package: effect
Module: Effect
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
contextWith for a version that allows pure transformations.Signature
declare const contextWithEffect: <R2, A, E, R>(f: (context: Context.Context<R2>) => Effect<A, E, R>) => Effect<A, E, R | R2>
Since v2.0.0