effect-io-ai

Package: effect
Module: TArray

TArray.transformSTM

Atomically updates all elements using a transactional effect.

Signature

declare const transformSTM: { <A, R, E>(f: (value: A) => STM.STM<A, E, R>): (self: TArray<A>) => STM.STM<void, E, R>; <A, R, E>(self: TArray<A>, f: (value: A) => STM.STM<A, E, R>): STM.STM<void, E, R>; }

Source

Since v2.0.0