From 528df2089d85df8e2d04848f7e79944f542f70d5 Mon Sep 17 00:00:00 2001 From: Haemin Yoo Date: Mon, 5 Aug 2019 13:58:57 +0900 Subject: [PATCH 1/2] Fix scaladoc in ZIO.never --- core/shared/src/main/scala/zio/ZIO.scala | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/shared/src/main/scala/zio/ZIO.scala b/core/shared/src/main/scala/zio/ZIO.scala index c01d80430577..07f381ece649 100644 --- a/core/shared/src/main/scala/zio/ZIO.scala +++ b/core/shared/src/main/scala/zio/ZIO.scala @@ -2074,9 +2074,9 @@ private[zio] trait ZIOFunctions extends Serializable { final def provide[R, E, A](r: R): ZIO[R, E, A] => IO[E, A] = (zio: ZIO[R, E, A]) => new ZIO.Provide(r, zio) - /** - * Evaluate each effect in the structure in parallel, and collect - * the results. For a sequential version, see `collectAll`. + /** + * Returns a effect that will never produce anything. The moral + * equivalent of `while(true) {}`, only without the wasted CPU cycles. */ final val never: UIO[Nothing] = effectAsync[Any, Nothing, Nothing](_ => ()) From 44dc84a1d300f2883e0aa4c49d14db0f35d3f3f3 Mon Sep 17 00:00:00 2001 From: Haemin Yoo Date: Mon, 5 Aug 2019 14:03:32 +0900 Subject: [PATCH 2/2] fix formatting --- core/shared/src/main/scala/zio/ZIO.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/shared/src/main/scala/zio/ZIO.scala b/core/shared/src/main/scala/zio/ZIO.scala index 07f381ece649..bc1c7a7d8280 100644 --- a/core/shared/src/main/scala/zio/ZIO.scala +++ b/core/shared/src/main/scala/zio/ZIO.scala @@ -2074,7 +2074,7 @@ private[zio] trait ZIOFunctions extends Serializable { final def provide[R, E, A](r: R): ZIO[R, E, A] => IO[E, A] = (zio: ZIO[R, E, A]) => new ZIO.Provide(r, zio) - /** + /** * Returns a effect that will never produce anything. The moral * equivalent of `while(true) {}`, only without the wasted CPU cycles. */