object time
- Source
- time.scala
- Alphabetic
- By Inheritance
- time
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
awakeEvery(d: Duration)(implicit S: Strategy, scheduler: ScheduledExecutorService): Process[Task, Duration]
Discrete process that every
demits elapsed duration since the start time of stream consumption.Discrete process that every
demits 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
ScheduledExecutorServicefor the timed events, and runs the consumer using thepoolStrategy, to allow for the process to decide whether result shall be run on different thread pool, or withStrategy.Sequentialon 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
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
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. -
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
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 untildhas elapsed, useawakeEveryinstead. -
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
sleep(d: FiniteDuration)(implicit S: Strategy, schedulerPool: ScheduledExecutorService): Process[Task, Nothing]
A single-element
Processthat waits for the durationdbefore emitting its value.A single-element
Processthat waits for the durationdbefore emitting its value. This uses a sharedScheduledThreadPoolExecutorto signal duration and avoid blocking on thread. After the signal, the execution continues withSstrategy -
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )