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