sealed trait IO[+L, +R] extends AnyRef
IO.Right and IO.Left are similar to types in scala.util.Try.
IO.Defer is for performing synchronous and asynchronous IO.
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- IO
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Type Members
- class WithFilter extends AnyRef
Abstract Value Members
- abstract def and[L2 >: L, B](io: => IO[L2, B])(implicit arg0: ExceptionHandler[L2]): IO[L2, B]
- abstract def andThen[B](io: => B): IO[L, B]
- abstract def exceptionHandler: ExceptionHandler[_]
- abstract def exists(f: (R) => Boolean): Boolean
- abstract def filter(p: (R) => Boolean): IO[L, R]
- abstract def flatMap[L2 >: L, B](f: (R) => IO[L2, B])(implicit arg0: ExceptionHandler[L2]): IO[L2, B]
- abstract def flatten[L2, R2](implicit ev: <:<[R, IO[L2, R2]]): IO[L2, R2]
- abstract def foreach[B](f: (R) => B): Unit
- abstract def get: R
- Annotations
- @throws(scala.this.throws.<init>$default$1[Throwable])
- abstract def getOrElse[B >: R](default: => B): B
- abstract def isLeft: Boolean
- abstract def isRight: Boolean
- abstract def left: IO[Throwable, L]
- abstract def map[B](f: (R) => B): IO[L, B]
- abstract def onCompleteSideEffect(f: (IO[L, R]) => Unit): IO[L, R]
- abstract def onLeftSideEffect(f: (Left[L, R]) => Unit): IO[L, R]
- abstract def onRightSideEffect(f: (R) => Unit): IO[L, R]
- abstract def orElse[L2 >: L, B >: R](default: => IO[L2, B])(implicit arg0: ExceptionHandler[L2]): IO[L2, B]
- abstract def recover[B >: R](f: PartialFunction[L, B]): IO[L, B]
- abstract def recoverWith[L2 >: L, B >: R](f: PartialFunction[L, IO[L2, B]])(implicit arg0: ExceptionHandler[L2]): IO[L2, B]
- abstract def right: IO[Throwable, R]
- abstract def toEither: Either[L, R]
- abstract def toFuture: Future[R]
- abstract def toOption: Option[R]
- abstract def toOptionValue: IO[L, Option[R]]
- abstract def toTry: Try[R]
- abstract def transform[B](f: (R) => B): IO[L, B]
Difference between map and transform is that transform does not recovery from exception if the function F throws an Exception.
- abstract def valueOrElse[B](f: (R) => B, orElse: => B): B
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##(): Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toDefer[L2 >: L](implicit arg0: ExceptionHandler[L2]): Defer[L2, R]
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def withFilter(p: (R) => Boolean): WithFilter
- Annotations
- @inline()