attempt

open fun attempt(): Effect<R, Result<A>>

Runs the Effect and captures any NonFatal exception into Result.