pakoito
fun <Type> IO<Type>.useCase(ok: (Type) -> Unit, error: (Throwable) -> Unit): IO<Unit> = defer(IO) { this@useCase } .continueOn(Main) .map(ok) .handleError(error)