object ZAsync

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

Type Members

  1. sealed trait Cancel extends NoEffects
  2. case class Cancelled(failure: CanceledFailure) extends Result[Cancel, Nothing] with Product with Serializable
  3. case class Failure(error: Throwable) extends Result[NoEffects, Nothing] with Product with Serializable
  4. sealed trait NoEffects extends AnyRef
  5. sealed trait Result[-C <: NoEffects, +A] extends AnyRef

    Represents ZAsync execution result

    Represents ZAsync execution result

    C

    ZAsync effect (either NoEffects or Cancel or Timeout

    A

    value type

  6. case class Success[A](value: A) extends Result[NoEffects, A] with Product with Serializable
  7. case class TimedOut(failure: TimeoutException) extends Result[Timeout, Nothing] with Product with Serializable
  8. sealed trait Timeout extends NoEffects

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def attempt[A](thunk: => A): ZAsync[A]

    Suspends side effect execution within ZAsync

    Suspends side effect execution within ZAsync

    A

    value type

    thunk

    effectful side effect (which may throw exceptions)

    returns

    suspended promise

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
  7. def collectAll[A, Collection[+Element] <: Iterable[Element]](in: Collection[ZAsync[A]])(implicit bf: zio.BuildFrom[Collection[ZAsync[A]], A, Collection[A]]): ZAsync[Collection[A]]

    Similar to zio.ZIO.collectAll for collections

    Similar to zio.ZIO.collectAll for collections

    in

    sequence of ZAsync

    returns

    promise with collected results or failure

  8. def collectAllDiscard(in: Iterable[ZAsync[Any]]): ZAsync[Unit]

    Returns ZAsync that becomes completed when all promises in the collection are completed.

    Returns ZAsync that becomes completed when all promises in the collection are completed. A single promise failure causes resulting promise to deliver the failure immediately.

    in

    async computations to wait for.

    returns

    ZAsync that is completed with null when all the argument promises become completed.

  9. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  10. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  11. def fail(error: Throwable): ZAsync[Nothing]

    Creates failed ZAsync

    Creates failed ZAsync

    error

    the error

    returns

    promise completed with error

  12. def foreach[A, B, Collection[+Element] <: Iterable[Element]](in: Collection[A])(f: (A) => ZAsync[B])(implicit bf: zio.BuildFrom[Collection[A], B, Collection[B]]): ZAsync[Collection[B]]

    Similar to zio.ZIO.foreach for collections

    Similar to zio.ZIO.foreach for collections

    in

    sequence of values

    f

    value handler

    returns

    promise with collected results or failure

  13. def foreach[A, B](in: Option[A])(f: (A) => ZAsync[B]): ZAsync[Option[B]]

    Similar to zio.ZIO.foreach for Option

    Similar to zio.ZIO.foreach for Option

    in

    optional value

    f

    value handler

    returns

    promise with collected result, None or failure

  14. def foreachDiscard[A](in: Iterable[A])(f: (A) => ZAsync[Any]): ZAsync[Unit]

    Similar to zio.ZIO.foreachDiscard for collections

    Similar to zio.ZIO.foreachDiscard for collections

    in

    sequence of values

    f

    value handler

    returns

    promise that completes when all inner promises complete

  15. def foreachPar[A, B, Collection[+Element] <: Iterable[Element]](in: Collection[A])(f: (A) => ZAsync[B])(implicit bf: zio.BuildFrom[Collection[A], B, Collection[B]]): ZAsync[Collection[B]]

    Similar to zio.ZIO.foreachPar for collections

    Similar to zio.ZIO.foreachPar for collections

    in

    sequence of values

    f

    value handler

    returns

    promise with collected results or failure

  16. def foreachParDiscard[A](in: Iterable[A])(f: (A) => ZAsync[Any]): ZAsync[Unit]

    Similar to zio.ZIO.foreachParDiscard for collections

    Similar to zio.ZIO.foreachParDiscard for collections

    in

    sequence of values

    f

    value handler

    returns

    promise which succeeds if all ZAsync succeed

  17. def fromEither[A](thunk: => Either[Throwable, A]): ZAsync[A]

    Suspends side effect execution within ZAsync

    Suspends side effect execution within ZAsync

    A

    value type

    thunk

    side effect

    returns

    suspended promise

  18. def fromJava[A](promise: io.temporal.workflow.Promise[A]): ZAsync[A]

    Wraps Temporal's Promise into ZAsync

    Wraps Temporal's Promise into ZAsync

    A

    value type

    promise

    the promise

    returns

    promise wrapped

  19. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  20. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @IntrinsicCandidate() @native()
  21. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  22. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  23. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  24. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @IntrinsicCandidate() @native()
  25. def raceFirst[A](in: Iterable[ZAsync[A]]): ZAsync[A]

    Returns ZAsync that becomes completed when any of the arguments is completed.

    Returns ZAsync that becomes completed when any of the arguments is completed. If it completes exceptionally then result is also completes exceptionally.

  26. def succeed[A](value: A): ZAsync[A]

    Creates successfully completed ZAsync

    Creates successfully completed ZAsync

    A

    value type

    value

    the value

    returns

    promise completed with value

  27. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  28. def toString(): String
    Definition Classes
    AnyRef → Any
  29. def unit: ZAsync[Unit]
  30. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  31. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  32. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  33. object Result

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

    (Since version 9)

Inherited from AnyRef

Inherited from Any

Ungrouped