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
  • 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
  • System
  • 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

system

package system

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

Type Members

  1. type System = Has[Service]

Value Members

  1. def env(variable: => String): ZIO[System, SecurityException, Option[String]]

    Retrieves the value of an environment variable.

  2. def envOrElse(variable: String, alt: => String): ZIO[System, SecurityException, String]

    Retrieves the value of an environment variable or else returns the specified fallback value.

  3. def envOrOption(variable: String, alt: => Option[String]): ZIO[System, SecurityException, Option[String]]

    Retrieves the value of an environment variable or else returns the specified optional fallback value.

  4. val envs: ZIO[System, SecurityException, Map[String, String]]

    Retrieves the values of all environment variables.

  5. val lineSeparator: URIO[System, String]

    Retrieves the value of the system-specific line separator.

  6. val properties: ZIO[System, Throwable, Map[String, String]]

    Retrieves the values of all system properties.

  7. def property(prop: => String): ZIO[System, Throwable, Option[String]]

    Retrieves the value of a system property.

  8. def propertyOrElse(prop: String, alt: => String): RIO[System, String]

    Retrieves the value of a system property or else return the specified fallback value.

  9. def propertyOrOption(prop: String, alt: => Option[String]): ZIO[System, Throwable, Option[String]]

    Retrieves the value of a system property or else return the specified optional fallback value.

  10. object System extends Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped