Packages

  • package root
    Definition Classes
    root
  • package zio
    Definition Classes
    root
  • package blocking
    Definition Classes
    zio
  • package clock
    Definition Classes
    zio
  • package console
    Definition Classes
    zio
  • Console
  • package duration
    Definition Classes
    zio
  • package internal
    Definition Classes
    zio
  • package random
    Definition Classes
    zio
  • package stm
    Definition Classes
    zio
  • package stream
    Definition Classes
    zio
  • package system
    Definition Classes
    zio
  • package test

    _ZIO Test_ is a featherweight testing library for effectful programs.

    _ZIO Test_ is a featherweight testing library for effectful programs.

    The library imagines every spec as an ordinary immutable value, providing tremendous potential for composition. Thanks to tight integration with ZIO, specs can use resources (including those requiring disposal), have well- defined linear and parallel semantics, and can benefit from a host of ZIO combinators.

    import zio.test._
    import zio.test.environment.Live
    import zio.clock.nanoTime
    import Assertion.isGreaterThan
    
    object MyTest extends DefaultRunnableSpec {
      def spec = suite("clock")(
        testM("time is non-zero") {
          assertM(Live.live(nanoTime))(isGreaterThan(0))
        }
      )
    }
    Definition Classes
    zio
p

zio

console

package console

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. console
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Type Members

  1. type Console = Has[Service]

Value Members

  1. val getStrLn: ZIO[Console, IOException, String]

    Retrieves a line of input from the console.

    Retrieves a line of input from the console. Fails with an java.io.EOFException when the underlying java.io.Reader returns null.

  2. def putStr(line: => String): ZIO[Console, IOException, Unit]

    Prints text to the console.

  3. def putStrErr(line: => String): ZIO[Console, IOException, Unit]

    Prints text to the standard error console.

  4. def putStrLn(line: => String): ZIO[Console, IOException, Unit]

    Prints a line of text to the console, including a newline character.

  5. def putStrLnErr(line: => String): ZIO[Console, IOException, Unit]

    Prints a line of text to the standard error console, including a newline character.

  6. object Console extends Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped