object ZFlow

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

Type Members

  1. final case class Await[E, A](exFlow: Remote[ExecutingFlow[E, A]]) extends ZFlow[Any, ActivityError, Either[E, A]] with Product with Serializable
  2. final case class Ensuring[R, E, A](flow: ZFlow[R, E, A], finalizer: ZFlow[Any, ZNothing, Unit]) extends ZFlow[R, E, A] with Product with Serializable
  3. final case class Fail[E](error: Remote[E]) extends ZFlow[Any, E, Nothing] with Product with Serializable
  4. final case class Fold[R, E, E2, A, B](value: ZFlow[R, E, A], errorCase: Option[UnboundRemoteFunction[E, ZFlow[R, E2, B]]], successCase: Option[UnboundRemoteFunction[A, ZFlow[R, E2, B]]]) extends ZFlow[R, E2, B] with Product with Serializable
  5. final case class Fork[R, E, A](flow: ZFlow[R, E, A]) extends ZFlow[R, Nothing, ExecutingFlow[E, A]] with Product with Serializable
  6. final case class Input[R]() extends ZFlow[R, Nothing, R] with Product with Serializable
  7. final case class Interrupt[E, A](exFlow: Remote[ExecutingFlow[E, A]]) extends ZFlow[Any, ActivityError, Unit] with Product with Serializable
  8. 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
  9. final case class Log(message: Remote[String]) extends ZFlow[Any, Nothing, Unit] with Product with Serializable
  10. final case class Modify[A, B](svar: Remote[RemoteVariableReference[A]], f: UnboundRemoteFunction[A, (B, A)]) extends ZFlow[Any, Nothing, B] with Product with Serializable
  11. final case class NewVar[A](name: String, initial: Remote[A], appendTempCounter: Boolean) extends ZFlow[Any, Nothing, RemoteVariableReference[A]] with Product with Serializable
  12. final case class OrTry[R, E, A](left: ZFlow[R, E, A], right: ZFlow[R, E, A]) extends ZFlow[R, E, A] with Product with Serializable
  13. final case class Provide[R, E, A](value: Remote[R], flow: ZFlow[R, E, A]) extends ZFlow[Any, E, A] with Product with Serializable
  14. final case class Read[A](svar: Remote[RemoteVariableReference[A]]) extends ZFlow[Any, Nothing, A] with Product with Serializable
  15. final case class Return[A](value: Remote[A]) extends ZFlow[Any, Nothing, A] with Product with Serializable
  16. final case class RunActivity[R, A](input: Remote[R], activity: Activity[R, A]) extends ZFlow[Any, ActivityError, A] with Product with Serializable
  17. final case class Timeout[R, E, A](flow: ZFlow[R, E, A], duration: Remote[zio.Duration]) extends ZFlow[R, E, Option[A]] with Product with Serializable
  18. final case class Transaction[R, E, A](workflow: ZFlow[R, E, A]) extends ZFlow[R, E, A] with Product with Serializable
  19. final case class Unwrap[R, E, A](remote: Remote[ZFlow[R, E, A]]) extends ZFlow[R, E, A] with Product with Serializable
  20. final case class UnwrapRemote[A](remote: Remote[Remote[A]]) extends ZFlow[Any, Nothing, A] with Product with Serializable
  21. final case class WaitTill(time: Remote[flow.Instant]) extends ZFlow[Any, Nothing, Unit] with Product with Serializable

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. def apply[A](remote: Remote[A]): ZFlow[Any, ZNothing, A]

    Creates a flow that returns the given remote value

  5. def apply[A](a: A)(implicit arg0: Schema[A]): ZFlow[Any, ZNothing, A]

    Creates a flow that returns the given value.

    Creates a flow that returns the given value.

    The value's type must have a Schema to be able to persist it in a Remote value.

  6. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  8. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  9. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  10. def fail[E](error: Remote[E]): ZFlow[Any, E, ZNothing]

    Creates a flow that fails with the given remote value

  11. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  12. def foreach[R, E, A, B](values: Remote[List[A]])(body: (Remote[A]) ⇒ ZFlow[R, E, B])(implicit arg0: Schema[B]): ZFlow[R, E, List[B]]

    Creates a flow that executes the flow returned by the body function for each element of the given values.

    Creates a flow that executes the flow returned by the body function for each element of the given values.

    The result of the flow is the list of each flow's result, in the same order as the input values are.

  13. def foreachPar[R, A, B](values: Remote[List[A]])(body: (Remote[A]) ⇒ ZFlow[R, ActivityError, B])(implicit arg0: Schema[B]): ZFlow[R, ActivityError, List[B]]

    Creates a flow that executes the flow returned by the body function for each element of the given values.

    Creates a flow that executes the flow returned by the body function for each element of the given values. The sub-flows are all executed in parallel.

    The result of the flow is the list of each flow's result, in the same order as the input values are.

  14. def fromEither[E, A](either: Remote[Either[E, A]]): ZFlow[Any, E, A]

    Creates a flow from a remote either value that either fails or succeeds corresponding to the either value.

  15. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  16. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  17. def ifThenElse[R, E, A](p: Remote[Boolean])(ifTrue: ZFlow[R, E, A], ifFalse: ZFlow[R, E, A]): ZFlow[R, E, A]

    Creates a flow that executes either the ifTrue flow or the ifFalse flow based on the given remote boolean's value

  18. def input[R]: ZFlow[R, ZNothing, R]

    Creates a flow that returns the flow's input

  19. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  20. def iterate[R, E, A](initial: Remote[A], step: (Remote[A]) ⇒ Remote[ZFlow[R, E, A]], predicate: (Remote[A]) ⇒ Remote[Boolean]): Iterate[R, E, A]

    Creates a flow that iterates a sub-flow starting from an initial value until a given predicate evaluates to true.

  21. def log(remoteMessage: Remote[String]): ZFlow[Any, ZNothing, Unit]

    Creates a flow that logs a remote string

  22. def log(message: String): ZFlow[Any, ZNothing, Unit]

    Creates a flow that logs a string

  23. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  24. def newTempVar[A](prefix: String, initial: Remote[A]): ZFlow[Any, ZNothing, RemoteVariableReference[A]]
  25. def newVar[A](name: String, initial: Remote[A]): ZFlow[Any, ZNothing, RemoteVariableReference[A]]

    Creates a flow that defines a new remote variable of type A, with a given name and initial value.

  26. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  27. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  28. def now: ZFlow[Any, ZNothing, flow.Instant]

    Creates a flow that returns the current time

  29. def random: ZFlow[Any, ZNothing, Double]

    Generates a random floating point number between 0 and 1

    Generates a random floating point number between 0 and 1

    For generating random values for different data types use the zio.flow.Random API.

  30. def randomUUID: ZFlow[Any, ZNothing, UUID]

    Generates a random UUID

    Generates a random UUID

    For generating random values for different data types use the zio.flow.Random API.

  31. def recurse[R, E, A, B](initial: Remote[A])(body: (Remote[A], (Remote[A]) ⇒ ZFlow[R, E, B]) ⇒ ZFlow[R, E, B]): ZFlow[R, E, B]

    Creates a flow that allows it's body run recursively

    Creates a flow that allows it's body run recursively

    initial

    The initial value passed to the body

    body

    A function that gets the current value and a function that can be used to recurse

  32. def recurseSimple[R, E, A](initial: Remote[A])(body: (Remote[A], (Remote[A]) ⇒ ZFlow[R, E, A]) ⇒ ZFlow[R, E, A]): ZFlow[R, E, A]

    Creates a flow that allows it's body run recursively

    Creates a flow that allows it's body run recursively

    initial

    The initial value passed to the body

    body

    A function that gets the current value and a function that can be used to recurse

  33. def repeatUntil[R, E](flow: ZFlow[R, E, Boolean]): ZFlow[R, E, Boolean]

    Creates a flow that repeats the given flow and stops when it evaluates to true.

  34. def repeatWhile[R, E](flow: ZFlow[R, E, Boolean]): ZFlow[R, E, Boolean]

    Creates a flow that repeats the given flow and stops when it evaluates to false.

  35. implicit def schema[R, E, A]: Schema[ZFlow[R, E, A]]
  36. lazy val schemaAny: Schema[ZFlow[Any, Any, Any]]
  37. def sleep(duration: Remote[zio.Duration]): ZFlow[Any, ZNothing, Unit]

    Creates a flow that waits for the given duration

  38. def succeed[A](value: Remote[A]): ZFlow[Any, ZNothing, A]

    Creates a flow that returns the given remote value

  39. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  40. def toString(): String
    Definition Classes
    AnyRef → Any
  41. def transaction[R, E, A](make: (ZFlowTransaction) ⇒ ZFlow[R, E, A]): ZFlow[R, E, A]

    Creates a transactional flow.

    Creates a transactional flow.

    Within a transaction each accessed remote variable is tracked and in case they got modified from another flow before the transaction finishes, the whole transaction is going to be retried.

    Activities executed within a transaction gets reverted in case of failure.

  42. val unit: ZFlow[Any, ZNothing, Unit]

    A flow that returns the unit value

  43. def unwrap[R, E, A](remote: Remote[ZFlow[R, E, A]]): ZFlow[R, E, A]

    Creates a flow that unwraps a remote flow value and executes it

  44. def unwrapRemote[A](remote: Remote[Remote[A]]): ZFlow[Any, ZNothing, A]

    Creates a flow that unwraps a nested remote value

  45. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  47. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  48. def waitTill(instant: Remote[flow.Instant]): ZFlow[Any, ZNothing, Unit]

    Creates a flow that suspends execution until a given point in time

  49. def when[R, E, A](predicate: Remote[Boolean])(flow: ZFlow[R, E, A]): ZFlow[R, E, Unit]

    Creates a flow that only runs the given flow if the given predicate is true

  50. object Await extends Serializable
  51. object Die extends ZFlow[Any, Nothing, Nothing] with Product with Serializable
  52. object Ensuring extends Serializable
  53. object Fail extends Serializable
  54. object Fold extends Serializable
  55. object Fork extends Serializable
  56. object Input extends Serializable
  57. object Interrupt extends Serializable
  58. object Iterate extends Serializable
  59. object Log extends Serializable
  60. object Modify extends Serializable
  61. object NewVar extends Serializable
  62. object Now extends ZFlow[Any, Nothing, flow.Instant] with Product with Serializable
  63. object OrTry extends Serializable
  64. object Provide extends Serializable
  65. object Random extends ZFlow[Any, Nothing, Double] with Product with Serializable
  66. object RandomUUID extends ZFlow[Any, Nothing, UUID] with Product with Serializable
  67. object Read extends Serializable
  68. object RetryUntil extends ZFlow[Any, Nothing, Nothing] with Product with Serializable
  69. object Return extends Serializable
  70. object RunActivity extends Serializable
  71. object Timeout extends Serializable
  72. object Transaction extends Serializable
  73. object Unwrap extends Serializable
  74. object UnwrapRemote extends Serializable
  75. object WaitTill extends Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped