Class/Object

scalaz.effect

IO

Related Docs: object IO | package effect

Permalink

sealed abstract class IO[A] extends AnyRef

Source
IO.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. IO
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def bracket[B, C](after: (A) ⇒ IO[B])(during: (A) ⇒ IO[C]): IO[C]

    Permalink

    Applies the "during" action, calling "after" regardless of whether there was an exception.

    Applies the "during" action, calling "after" regardless of whether there was an exception. All exceptions are rethrown. Generalizes try/finally.

  6. def bracketIO[M[_], B](after: (A) ⇒ IO[Unit])(during: (A) ⇒ M[B])(implicit m: MonadControlIO[M]): M[B]

    Permalink
  7. def bracketOnError[B, C](after: (A) ⇒ IO[B])(during: (A) ⇒ IO[C]): IO[C]

    Permalink

    A variant of "bracket" that performs the final action only if there was an error.

  8. def bracket_[B, C](after: IO[B])(during: IO[C]): IO[C]

    Permalink

    A variant of "bracket" where the return value of this computation is not needed.

  9. def catchLeft: IO[\/[Throwable, A]]

    Permalink

    Returns a disjunction result which is right if no exception was raised, or left if an exception was raised.

  10. def catchSome[B](p: (Throwable) ⇒ Option[B], handler: (B) ⇒ IO[A]): IO[A]

    Permalink

    Executes the handler for exceptions that are raised and match the given predicate.

    Executes the handler for exceptions that are raised and match the given predicate. Other exceptions are rethrown.

  11. def catchSomeLeft[B](p: (Throwable) ⇒ Option[B]): IO[\/[B, A]]

    Permalink

    Like "catchLeft" but takes a predicate to select which exceptions are caught.

  12. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def ensuring[B](sequel: IO[B]): IO[A]

    Permalink

    Like "bracket", but takes only a computation to run afterward.

    Like "bracket", but takes only a computation to run afterward. Generalizes "finally".

  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def except(handler: (Throwable) ⇒ IO[A]): IO[A]

    Permalink

    Executes the handler if an exception is raised.

  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. def flatMap[B](f: (A) ⇒ IO[B]): IO[B]

    Permalink

    Continues this action with the given action.

  19. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  22. def liftIO[M[_]](implicit m: MonadIO[M]): M[A]

    Permalink

    Lift this action to a given IO-like monad.

  23. def map[B](f: (A) ⇒ B): IO[B]

    Permalink

    Continues this action with the given function.

  24. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  25. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  26. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. def onException[B](action: IO[B]): IO[A]

    Permalink

    Like "finally", but only performs the final action if there was an exception.

  28. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  29. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  30. def unsafeInterleaveIO(): IO[Free.Trampoline[A]]

    Permalink

    Constructs an IO action whose steps may be interleaved with another.

    Constructs an IO action whose steps may be interleaved with another. An unsafe operation, since it exposes a trampoline that allows one to step through the components of the IO action.

  31. def unsafePerformIO(): A

    Permalink

    Runs I/O and performs side-effects.

    Runs I/O and performs side-effects. An unsafe operation. Do not call until the end of the universe.

  32. def unsafeZip[B](iob: IO[B]): IO[(A, B)]

    Permalink

    Interleaves the steps of this IO action with the steps of another, yielding the results of both.

  33. def unsafeZipWith[B, C](iob: IO[B], f: (A, B) ⇒ C): IO[C]

    Permalink

    Interleaves the steps of this IO action with the steps of another, consuming the results of both with the given function.

  34. def unsafeZip_[B](iob: IO[B]): IO[B]

    Permalink

    Interleaves the steps of this IO action with the steps of another, ignoring the result of this action.

  35. def using[C](f: (A) ⇒ IO[C])(implicit resource: Resource[A]): IO[C]

    Permalink

    An automatic resource management.

  36. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  37. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  38. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped