Timer

tinyscalautils.threads.Timer
trait Timer extends AutoCloseable

Simple timers.

Attributes

Since

1.0

Source
Timer.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def run[U](delay: Double)(code: => U): Unit

Schedules a task for delayed execution.

Schedules a task for delayed execution.

Attributes

Source
Timer.scala
def runAtFixedRate[U](initDelay: Double, rate: Double)(code: => U): Unit

Schedules a task for repeated execution.

Schedules a task for repeated execution.

Note that there is no mechanism to cancel the task, short of shutting down the timer

Attributes

Source
Timer.scala
def runWithFixedDelay[U](initDelay: Double, delay: Double)(code: => U): Unit

Schedules a task for repeated execution.

Schedules a task for repeated execution.

Note that there is no mechanism to cancel the task, short of shutting down the timer

Attributes

Source
Timer.scala
def schedule[A](delay: Double)(code: => A): Future[A]

Schedules a task for delayed execution.

Schedules a task for delayed execution.

Attributes

Source
Timer.scala
def shutdown(): Unit

Shuts down the timer.

Shuts down the timer.

Delayed tasks will still run, but repeated tasks are stopped.

Attributes

Source
Timer.scala

Concrete methods

final def close(): Unit

Alias for shutdown to implement AutoCloseable.

Alias for shutdown to implement AutoCloseable.

Attributes

Since

1.3

Source
Timer.scala

Deprecated methods

def execute[U](delay: Double)(code: => U): Unit

Attributes

Deprecated
[Since version 1.7]
Source
Timer.scala
def scheduleAtFixedRate[U](initDelay: Double, rate: Double)(code: => U): Unit

Attributes

Deprecated
[Since version 1.7]
Source
Timer.scala
def scheduleWithFixedDelay[U](initDelay: Double, delay: Double)(code: => U): Unit

Attributes

Deprecated
[Since version 1.7]
Source
Timer.scala