final case class Iterate[R, E, A](initial: Remote[A], step: UnboundRemoteFunction[A, ZFlow[R, E, A]], predicate: UnboundRemoteFunction[A, Boolean]) extends ZFlow[R, E, A] with Product with Serializable

Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Iterate
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. ZFlow
  7. AnyRef
  8. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new Iterate(initial: Remote[A], step: UnboundRemoteFunction[A, ZFlow[R, E, A]], predicate: UnboundRemoteFunction[A, Boolean])

Type Members

  1. type ValueA = A
  2. type ValueE = E

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def *>[R1 <: R, E1 >: E, A1 >: A, B](that: ZFlow[R1, E1, B]): ZFlow[R1, E1, B]

    Executes this flow and then that flow, keeping only the result of the second.

    Executes this flow and then that flow, keeping only the result of the second.

    An alias for zipRight.

    Definition Classes
    ZFlow
  4. final def <*[R1 <: R, E1 >: E, A1 >: A, B](that: ZFlow[R1, E1, B]): ZFlow[R1, E1, A1]

    Executes this flow and then that flow, keeping only the result of the first.

    Executes this flow and then that flow, keeping only the result of the first.

    An alias for zipLeft

    Definition Classes
    ZFlow
  5. final def <*>[R1 <: R, E1 >: E, A1 >: A, B](that: ZFlow[R1, E1, B]): ZFlow[R1, E1, (A1, B)]

    Executes this flow and then that flow keeping the result of both zipped together

    Executes this flow and then that flow keeping the result of both zipped together

    An alias for zip

    Definition Classes
    ZFlow
  6. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  7. final def as[B](b: ⇒ Remote[B]): ZFlow[R, E, B]

    Replace the flow's result value with the provided value

    Replace the flow's result value with the provided value

    Definition Classes
    ZFlow
  8. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  9. final def catchAll[R1 <: R, E1 >: E, A1 >: A, E2](f: (Remote[E1]) ⇒ ZFlow[R1, E2, A1]): ZFlow[R1, E2, A1]

    Recover from any failure of this flow by executing the given function

    Recover from any failure of this flow by executing the given function

    Definition Classes
    ZFlow
  10. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  11. final def ensuring[E1 >: E, A1 >: A](flow: ZFlow[Any, ZNothing, Any]): ZFlow[R, E1, A1]

    Ensure that the given flow is executed after this flow, regardless of success or failure

    Ensure that the given flow is executed after this flow, regardless of success or failure

    Definition Classes
    ZFlow
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def flatMap[R1 <: R, E1 >: E, B](f: (Remote[A]) ⇒ ZFlow[R1, E1, B]): ZFlow[R1, E1, B]

    Executes this flow and then calls the given function with the flow's result to determine the next steps.

    Executes this flow and then calls the given function with the flow's result to determine the next steps.

    Definition Classes
    ZFlow
  15. final def foldFlow[R1 <: R, E2, B](onError: (Remote[E]) ⇒ ZFlow[R1, E2, B], onSuccess: (Remote[A]) ⇒ ZFlow[R1, E2, B]): ZFlow[R1, E2, B]

    Executes this flow and then calls either the onError or the onSuccess functions to determine the next steps.

    Executes this flow and then calls either the onError or the onSuccess functions to determine the next steps.

    Definition Classes
    ZFlow
  16. final def fork: ZFlow[R, ZNothing, ExecutingFlow[E, A]]

    Execute this flow in the background.

    Execute this flow in the background.

    The returned value (of type ExecutingFlow) can be used to await or interrupt the running flow.

    Definition Classes
    ZFlow
  17. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  18. final def ifThenElse[R1 <: R, E1 >: E, B](ifTrue: ZFlow[R1, E1, B], ifFalse: ZFlow[R1, E1, B])(implicit ev: <:<[A, Boolean]): ZFlow[R1, E1, B]

    Executes this flow and based on its boolean result determines the next steps by either calling ifTrue or ifFalse

    Executes this flow and based on its boolean result determines the next steps by either calling ifTrue or ifFalse

    Definition Classes
    ZFlow
  19. val initial: Remote[A]
  20. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  21. final def iterate[R1 <: R, E1 >: E, A1 >: A](step: (Remote[A1]) ⇒ ZFlow[R1, E1, A1])(predicate: (Remote[A1]) ⇒ Remote[Boolean]): ZFlow[R1, E1, A1]

    Repeatedly executes a flow until a given predicate becomes true.

    Repeatedly executes a flow until a given predicate becomes true.

    The initial value is the result of this flow. The step function is called with this value to produce the next flow to execute. The iteration stops when the predicate function returns true for the last step's result.

    Definition Classes
    ZFlow
  22. final def map[B](f: (Remote[A]) ⇒ Remote[B]): ZFlow[R, E, B]

    Maps the result of this flow with the given function

    Maps the result of this flow with the given function

    Definition Classes
    ZFlow
  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  25. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  26. final def orDie[R1 <: R, E1 >: E, A1 >: A]: ZFlow[R1, ZNothing, A1]

    Converts this flow's failure to a fatal flow failure

    Converts this flow's failure to a fatal flow failure

    Definition Classes
    ZFlow
  27. final def orElse[R1 <: R, E1 >: E, E2, A1 >: A](that: ZFlow[R1, E2, A1]): ZFlow[R1, E2, A1]

    Executes this flow and if it fails executes that flow.

    Executes this flow and if it fails executes that flow.

    The flow and the fallback flow must have compatible result types. If they don't, use orElseEither.

    Definition Classes
    ZFlow
  28. final def orElseEither[R1 <: R, A1 >: A, E2, B](that: ZFlow[R1, E2, B]): ZFlow[R1, E2, Either[A1, B]]

    Executes this flow and if it fails executes that flow.

    Executes this flow and if it fails executes that flow. The two flows can have different result types which will be captured in an Either value.

    Definition Classes
    ZFlow
  29. final def orTry[R1 <: R, E1 >: E, A1 >: A](that: ZFlow[R1, E1, A1]): ZFlow[R1, E1, A1]

    Attempts to execute this flow, but then, if this flow is suspended due to performing a retry operation inside a transaction (because conditions necessary for executing this flow are not yet ready), then will switch over to the specified flow.

    Attempts to execute this flow, but then, if this flow is suspended due to performing a retry operation inside a transaction (because conditions necessary for executing this flow are not yet ready), then will switch over to the specified flow.

    If this flow never suspends, then it will always execute to success or failure, and the specified flow will never be executed.

    Definition Classes
    ZFlow
  30. val predicate: UnboundRemoteFunction[A, Boolean]
  31. final def provide(value: Remote[R]): ZFlow[Any, E, A]

    Provide a value as this flow's input

    Provide a value as this flow's input

    Definition Classes
    ZFlow
  32. final def repeat[Ctx](schedule: ZFlowSchedule[Ctx]): ZFlow[R, E, List[A]]

    Runs this workflow and then repeats it according to the given schedule.

    Runs this workflow and then repeats it according to the given schedule. The result is the list of all the results collected from the repeated flow.

    Definition Classes
    ZFlow
  33. final def replicate(n: Remote[Int]): ZFlow[R, E, Chunk[A]]

    Repeats this flow n times and collect all the results

    Repeats this flow n times and collect all the results

    Definition Classes
    ZFlow
  34. def schedule[Ctx](schedule: ZFlowSchedule[Ctx]): ZFlow[R, E, Option[A]]

    Delays the execution of this flow according to the given schedule.

    Delays the execution of this flow according to the given schedule.

    Definition Classes
    ZFlow
  35. val step: UnboundRemoteFunction[A, ZFlow[R, E, A]]
  36. def substituteRec[B](f: Substitutions): ZFlow[R, E, A]
    Attributes
    protected
    Definition Classes
    IterateZFlow
  37. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  38. final def timeout(duration: Remote[zio.Duration]): ZFlow[R, E, Option[A]]

    Try to execute this flow but timeout after the given duration.

    Try to execute this flow but timeout after the given duration.

    If the flow finished running within the time limits, the result is wrapped in Some, otherwise if it timed out the result is None.

    Definition Classes
    ZFlow
  39. final def unit: ZFlow[R, E, Unit]

    Ignores the successful result of this flow and return with unit instead

    Ignores the successful result of this flow and return with unit instead

    Definition Classes
    ZFlow
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  43. final def widen[A0](implicit ev: <:<[A, A0]): ZFlow[R, E, A0]

    Widen the result type of the flow

    Widen the result type of the flow

    Definition Classes
    ZFlow
  44. final def zip[R1 <: R, E1 >: E, A1 >: A, B](that: ZFlow[R1, E1, B]): ZFlow[R1, E1, (A1, B)]

    Executes this flow and then that flow keeping the result of both zipped together

    Executes this flow and then that flow keeping the result of both zipped together

    Has a symbolic alias <*>

    Definition Classes
    ZFlow
  45. final def zipLeft[R1 <: R, E1 >: E, A1 >: A, B](that: ZFlow[R1, E1, B]): ZFlow[R1, E1, A1]

    Executes this flow and then that flow, keeping only the result of the first.

    Executes this flow and then that flow, keeping only the result of the first.

    Has a symbolic alias <*

    Definition Classes
    ZFlow
  46. final def zipRight[R1 <: R, E1 >: E, A1 >: A, B](that: ZFlow[R1, E1, B]): ZFlow[R1, E1, B]

    Executes this flow and then that flow, keeping only the result of the second.

    Executes this flow and then that flow, keeping only the result of the second.

    Has a symbolic alias *>.

    Definition Classes
    ZFlow

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ZFlow[R, E, A]

Inherited from AnyRef

Inherited from Any

Ungrouped