sealed
trait
IO[+L, +R] extends AnyRef
Type Members
-
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
-
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]
-
abstract
def
valueOrElse[B](f: (R) ⇒ B, orElse: ⇒ B): B
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
-
final
def
##(): Int
-
final
def
==(arg0: Any): Boolean
-
final
def
asInstanceOf[T0]: T0
-
def
clone(): AnyRef
-
final
def
eq(arg0: AnyRef): Boolean
-
def
equals(arg0: Any): Boolean
-
def
finalize(): Unit
-
final
def
getClass(): Class[_]
-
def
hashCode(): Int
-
final
def
isInstanceOf[T0]: Boolean
-
final
def
ne(arg0: AnyRef): Boolean
-
final
def
notify(): Unit
-
final
def
notifyAll(): Unit
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
-
def
toDefer[L2 >: L](implicit arg0: ExceptionHandler[L2]): Defer[L2, R]
-
def
toString(): String
-
final
def
wait(): Unit
-
final
def
wait(arg0: Long, arg1: Int): Unit
-
final
def
wait(arg0: Long): Unit
-
final
def
withFilter(p: (R) ⇒ Boolean): WithFilter
IO.Right and IO.Left are similar to types in scala.util.Try.
IO.Defer is for performing synchronous and asynchronous IO.