/** * Performs this transaction the specified number of times and collects the * results. * * @tsplus static effect/core/stm/STM.Aspects replicateSTM * @tsplus pipeable effect/core/stm/STM replicateSTM */ export function replicateSTM(n: number) { return (self: STM): STM> => STM.suspend(STM.collectAll(self.replicate(n))) }