Object/Trait

scalaz.zio

Schedule

Related Docs: trait Schedule | package zio

Permalink

object Schedule extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Schedule
  2. Serializable
  3. Serializable
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. sealed case class Decision[+A, +B](cont: Boolean, delay: Duration, state: A, finish: () ⇒ B) extends Product with Serializable

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. object Decision extends Serializable

    Permalink
  5. final def apply[S, A, B](initial0: (Clock) ⇒ IO[Nothing, S], update0: (A, S, Clock) ⇒ IO[Nothing, Decision[S, B]]): Schedule[A, B]

    Permalink
  6. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  7. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  8. final def collect[A]: Schedule[A, List[A]]

    Permalink

    A schedule that recurs forever, collecting all inputs into a list.

  9. final val decision: Schedule[Any, Boolean]

    Permalink

    A schedule that will recur forever with no delay, returning the decision from the steps.

    A schedule that will recur forever with no delay, returning the decision from the steps. You can chain this onto the end of schedules to find out what their decision is, e.g. Schedule.recurs(5) >>> Schedule.decision.

  10. final val delay: Schedule[Any, Duration]

    Permalink

    A schedule that will recur forever with no delay, returning the duration between steps.

    A schedule that will recur forever with no delay, returning the duration between steps. You can chain this onto the end of schedules to find out what their delay is, e.g. Schedule.spaced(1.second) >>> Schedule.delay.

  11. final def delayed[A](s: Schedule[A, Duration]): Schedule[A, Duration]

    Permalink

    A new schedule derived from the specified schedule which adds the delay specified as output to the existing duration.

  12. final def doUntil[A](f: (A) ⇒ Boolean): Schedule[A, A]

    Permalink

    A schedule that recurs for until the predicate evaluates to true.

  13. final def doWhile[A](f: (A) ⇒ Boolean): Schedule[A, A]

    Permalink

    A schedule that recurs for as long as the predicate evaluates to true.

  14. final def duration(duration: Duration): Schedule[Any, Duration]

    Permalink

    A schedule that will recur until the specified duration elapses.

    A schedule that will recur until the specified duration elapses. Returns the total elapsed time.

  15. final val elapsed: Schedule[Any, Duration]

    Permalink

    A schedule that recurs forever without delay.

    A schedule that recurs forever without delay. Returns the elapsed time since the schedule began.

  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  18. final def exponential(base: Duration, factor: Double = 2.0): Schedule[Any, Duration]

    Permalink

    A schedule that always recurs, but will wait a certain amount between repetitions, given by base * factor.pow(n), where n is the number of repetitions so far.

    A schedule that always recurs, but will wait a certain amount between repetitions, given by base * factor.pow(n), where n is the number of repetitions so far. Returns the current duration between recurrences.

  19. final def fibonacci(one: Duration): Schedule[Any, Duration]

    Permalink

    A schedule that always recurs, increasing delays by summing the preceding two delays (similar to the fibonacci sequence).

    A schedule that always recurs, increasing delays by summing the preceding two delays (similar to the fibonacci sequence). Returns the current duration between recurrences.

  20. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  21. final def fixed(interval: Duration): Schedule[Any, Int]

    Permalink

    A schedule that recurs on a fixed interval.

    A schedule that recurs on a fixed interval. Returns the number of repetitions of the schedule so far.

    If the action run between updates takes longer than the interval, then the action will be run immediately, but re-runs will not "pile up".

    |---------interval---------|---------interval---------|
    |action|                   |action|
    

  22. final val forever: Schedule[Any, Int]

    Permalink

    A schedule that recurs forever, producing a count of inputs.

  23. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  24. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  25. final def identity[A]: Schedule[A, A]

    Permalink

    A schedule that recurs forever, returning each input as the output.

  26. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  27. final def lift[A, B](f: (A) ⇒ B): Schedule[A, B]

    Permalink

    A schedule that recurs forever, mapping input values through the specified function.

  28. final def linear(base: Duration): Schedule[Any, Duration]

    Permalink

    A schedule that always recurs, but will repeat on a linear time interval, given by base * n where n is the number of repetitions so far.

    A schedule that always recurs, but will repeat on a linear time interval, given by base * n where n is the number of repetitions so far. Returns the current duration between recurrences.

  29. final def logInput[A](f: (A) ⇒ IO[Nothing, Unit]): Schedule[A, A]

    Permalink

    A schedule that recurs forever, dumping input values to the specified sink, and returning those same values unmodified.

  30. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  31. final val never: Schedule[Any, Nothing]

    Permalink

    A schedule that never executes.

    A schedule that never executes. Note that negating this schedule does not produce a schedule that executes.

  32. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  33. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  34. final val once: Schedule[Any, Unit]

    Permalink

    A schedule that executes once.

  35. final def point[A](a: ⇒ A): Schedule[Any, A]

    Permalink

    A schedule that recurs forever, returning the constant for every output.

  36. final def recurs(n: Int): Schedule[Any, Int]

    Permalink

    A schedule that recurs the specified number of times.

    A schedule that recurs the specified number of times. Returns the number of repetitions so far.

  37. final def spaced(interval: Duration): Schedule[Any, Int]

    Permalink

    A schedule that waits for the specified amount of time between each input.

    A schedule that waits for the specified amount of time between each input. Returns the number of inputs so far.

    |action|-----interval-----|action|-----interval-----|action|
    

  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  40. final def unfold[A](a: ⇒ A)(f: (A) ⇒ A): Schedule[Any, A]

    Permalink

    A schedule that always recurs without delay, and computes the output through recured application of a function to a base value.

  41. final def unfoldM[A](a: IO[Nothing, A])(f: (A) ⇒ IO[Nothing, A]): Schedule[Any, A]

    Permalink

    A schedule that always recurs without delay, and computes the output through recured application of a function to a base value.

  42. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped