`delay` doesn't want to compile without a first ar...
# arrow
k
delay
doesn't want to compile without a first arg being a CoroutineContext, so is this version correct:
Copy code
fun <Type> IO<Type>.useCase(ok: (Type) -> Unit, error: (Throwable) -> Unit): IO<Unit> =
    defer(<http://Dispatchers.IO|Dispatchers.IO>) { this@useCase }
        .flatMap { t -> delay(Dispatchers.Main) { ok(t) } }
        .handleErrorWith { err -> delay(Dispatchers.Main) { error(err) } }