scalaz.stream

time

object time

Source
time.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. time
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  7. def awakeEvery(d: Duration)(implicit S: Strategy, scheduler: ScheduledExecutorService): Process[Task, Duration]

    Discrete process that every d emits elapsed duration since the start time of stream consumption.

    Discrete process that every d emits elapsed duration since the start time of stream consumption.

    For example: awakeEvery(5 seconds) will return (approximately) 5s, 10s, 20s, and will lie dormant between emitted values.

    By default, this uses a shared ScheduledExecutorService for the timed events, and runs the consumer using the pool Strategy, to allow for the process to decide whether result shall be run on different thread pool, or with Strategy.Sequential on the same thread pool as the scheduler.

    d

    Duration between emits of the resulting process

    S

    Strategy to run the process

    scheduler

    Scheduler used to schedule tasks

  8. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def duration: Process[Task, FiniteDuration]

    A continuous stream of the elapsed time, computed using System.nanoTime.

    A continuous stream of the elapsed time, computed using System.nanoTime. Note that the actual granularity of these elapsed times depends on the OS, for instance the OS may only update the current time every ten milliseconds or so.

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

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

    Definition Classes
    AnyRef → Any
  12. def every(d: Duration): Process[Task, Boolean]

    A 'continuous' stream which is true after d, 2d, 3d... elapsed duration, and false otherwise.

    A 'continuous' stream which is true after d, 2d, 3d... elapsed duration, and false otherwise. If you'd like a 'discrete' stream that will actually block until d has elapsed, use awakeEvery instead.

  13. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  14. final def getClass(): Class[_]

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

    Definition Classes
    AnyRef → Any
  16. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  17. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  18. final def notify(): Unit

    Definition Classes
    AnyRef
  19. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  20. def sleep(d: FiniteDuration)(implicit S: Strategy, schedulerPool: ScheduledExecutorService): Process[Task, Nothing]

    A single-element Process that waits for the duration d before emitting its value.

    A single-element Process that waits for the duration d before emitting its value. This uses a shared ScheduledThreadPoolExecutor to signal duration and avoid blocking on thread. After the signal, the execution continues with S strategy

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

    Definition Classes
    AnyRef
  22. def toString(): String

    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped