Leandro Borges Ferreira
09/26/2018, 2:23 AMattempt()
of IO. Like this:
someCommand(IO.monadDefer(), arg1)
.fix()
.attempt()
.unsafeRunSync()
.fold({ error ->
raiseError<List<Log>>(createErrorLogs("It was not possible to run the command", error))
}, {
just(it)
})
.bind()