``` fun <Type> IO<Type>.useCase(ok: (T...
# arrow
p
Copy code
fun <Type> IO<Type>.useCase(ok: (Type) -> Unit, error: (Throwable) -> Unit): IO<Unit> = fx {
  continueOn(IO)
  val t: Type = this@useCase.bind()
  continueOn(Main)
  ok(t)
}.handleError(error)