implicit final class NelsonEnrichedIO[A] extends AnyVal
- Source
- CatsHelpers.scala
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- NelsonEnrichedIO
- AnyVal
- Any
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
- new NelsonEnrichedIO(io: IO[A])
Value Members
-
def
ensure(failure: ⇒ Throwable)(f: (A) ⇒ Boolean): IO[A]
Fail with error if the result of the IO does not satsify the predicate
Fail with error if the result of the IO does not satsify the predicate
Taken from https://github.com/scalaz/scalaz/blob/series/7.3.x/concurrent/src/main/scala/scalaz/concurrent/Task.scala
-
def
getClass(): Class[_ <: AnyVal]
- Definition Classes
- AnyVal → Any
- val io: IO[A]
-
def
or(other: IO[A]): IO[A]
Run
other
if this IO fails - def timed(timeout: FiniteDuration)(implicit ec: ExecutionContext): IO[A]