Object

scalaz.stream

time

Related Doc: package stream

Permalink

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
Visibility
  1. Public
  2. All

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. final def asInstanceOf[T0]: T0

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

    Permalink

    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

  6. def clone(): AnyRef

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

    Permalink

    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.

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

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

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

    Permalink

    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.

  11. def finalize(): Unit

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

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

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

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

    Permalink
    Definition Classes
    AnyRef
  16. final def notify(): Unit

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

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

    Permalink

    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

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

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

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

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

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

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

Inherited from AnyRef

Inherited from Any

Ungrouped