/** * Unwraps the optional success of this effect, but can fail with an None value. * * @tsplus getter effect/core/stm/STM get */ export function get(self: STM>): STM, A> { return self.foldSTM( (x) => STM.fail(Maybe.some(x)), (_) => _.fold(() => STM.fail(Maybe.none), STM.succeed) ) }