Run f and handle any exception thrown with onError.
import arrow.fx.stm.atomicallysuspend fun main() { //sampleStart val result = atomically { catch({ throw Throwable() }) { _ -> "caught" } } //sampleEnd println("Result $result")}