/** * Simultaneously filters and flatMaps the value produced by this effect. * Continues on the effect returned from the specified partial function. * * @tsplus static effect/core/stm/STM.Aspects continueOrRetrySTM * @tsplus pipeable effect/core/stm/STM continueOrRetrySTM */ export function continueOrRetrySTM( pf: (a: A) => Maybe> ) { return (self: STM): STM => self.flatMap((a): STM => pf(a).getOrElse(STM.retry)) }