zio
package zio
- Alphabetic
- By Inheritance
- zio
- EitherCompat
- ZEnvDefinition
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Package Members
- 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.clock.nanoTime import Assertion.isGreaterThan object MyTest extends DefaultRunnableSpec { suite("clock") { testM("time is non-zero") { assertM(nanoTime, isGreaterThan(0)) } } }
Type Members
- type Canceler[R] = ZIO[R, Nothing, Any]
- type IO[+E, +A] = ZIO[Any, E, A]
- type Managed[+E, +A] = ZManaged[Any, E, A]
- type Queue[A] = ZQueue[Any, Nothing, Any, Nothing, A, A]
- type RIO[-R, +A] = ZIO[R, Throwable, A]
- type RManaged[-R, +A] = ZManaged[R, Throwable, A]
- type Task[+A] = ZIO[Any, Throwable, A]
- type TaskManaged[+A] = ZManaged[Any, Throwable, A]
- type UIO[+A] = ZIO[Any, Nothing, A]
- type UManaged[+A] = ZManaged[Any, Nothing, A]
- type URIO[-R, +A] = ZIO[R, Nothing, A]
- type URManaged[-R, +A] = ZManaged[R, Nothing, A]
- type ZEnv = Clock with Console with System with Random
- Definition Classes
- ZEnvDefinition
Deprecated Type Members
- type FiberId = Id
- Annotations
- @deprecated
- Deprecated
(Since version 1.0.0) use Fiber.Id
- type TaskR[-R, +A] = ZIO[R, Throwable, A]
- Annotations
- @deprecated
- Deprecated
(Since version 1.0.0) use RIO
- type ZSchedule[-R, -A, +B] = Schedule[R, A, B]
- Annotations
- @deprecated
- Deprecated
(Since version 1.0.0) use Schedule