scalaz.effects

IO

trait IO [A] extends AnyRef

Attributes
sealed
Source
IO.scala
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Hide All
  2. Show all
  1. IO
  2. AnyRef
  3. Any
Visibility
  1. Public
  2. All

Value Members

  1. def != (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  2. def != (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  3. def ## (): Int

    Attributes
    final
    Definition Classes
    AnyRef → Any
  4. def == (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  5. def == (arg0: Any): Boolean

    Attributes
    final
    Definition Classes
    Any
  6. def asInstanceOf [T0] : T0

    Attributes
    final
    Definition Classes
    Any
  7. def bracket [B, C] (after: (A) ⇒ IO[B])(during: (A) ⇒ IO[C]): IO[C]

    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.

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

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

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

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

  10. def catchLeft : IO[Either[Throwable, A]]

    Returns an Either result which is Right if no exception was raised, or Left if an exception was raised.

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

    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.

  12. def catchSomeLeft [B] (p: (Throwable) ⇒ Option[B]): IO[Either[B, A]]

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

  13. def clone (): AnyRef

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

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

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

  15. def eq (arg0: AnyRef): Boolean

    Attributes
    final
    Definition Classes
    AnyRef
  16. def equals (arg0: Any): Boolean

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

    Executes the handler if an exception is raised.

  18. def finalize (): Unit

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  19. def flatMap [B] (f: (A) ⇒ IO[B]): IO[B]

  20. def getClass (): java.lang.Class[_]

    Attributes
    final
    Definition Classes
    AnyRef → Any
  21. def hashCode (): Int

    Definition Classes
    AnyRef → Any
  22. def isInstanceOf [T0] : Boolean

    Attributes
    final
    Definition Classes
    Any
  23. def map [B] (f: (A) ⇒ B): IO[B]

  24. def ne (arg0: AnyRef): Boolean

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

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

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

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

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

    Attributes
    final
    Definition Classes
    AnyRef
  29. def toString (): String

    Definition Classes
    AnyRef → Any
  30. def unsafeInterleaveIO : IO[Trampoline[A]]

    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

    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 unsafeZipWith [B, C] (iob: IO[B], f: (A, B) ⇒ C): IO[C]

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

  33. def wait (): Unit

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

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

    Attributes
    final
    Definition Classes
    AnyRef
    Annotations
    @throws()

Inherited from AnyRef

Inherited from Any