Skip to content

Commit

Permalink
Effect: remove incorrect method (#1233)
Browse files Browse the repository at this point in the history
  • Loading branch information
nomisRev authored Jan 7, 2019
1 parent cb3557a commit ddf4afe
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,10 @@ package arrow.effects.typeclasses

import arrow.Kind
import arrow.core.Either
import arrow.effects.IO

/**
* ank_macro_hierarchy(arrow.effects.typeclasses.Effect)
*/
interface Effect<F> : Async<F> {
fun <A> Kind<F, A>.runAsync(cb: (Either<Throwable, A>) -> Kind<F, Unit>): Kind<F, Unit>

fun <A> Kind<F, A>.toIO(): IO<A> = IO.async { _, cb ->
runAsync { r ->
cb(r).just()
}
}

}

0 comments on commit ddf4afe

Please sign in to comment.