effect-io-ai

Package: effect
Module: STM

STM.contextWithSTM

Accesses the environment of the transaction to perform a transaction.

Signature

declare const contextWithSTM: <R0, A, E, R>(f: (environment: Context.Context<R0>) => STM<A, E, R>) => STM<A, E, R0 | R>

Source

Since v2.0.0