Timer
Timer exposes a steady Async.Source of ticks that happens every tickDuration milliseconds. Note that the timer does not start ticking until start is called (which is a blocking operation, until the timer is cancelled).
You might want to manually cancel the timer, so that it gets garbage collected (before the enclosing Async scope ends).
Attributes
- Graph
-
- Supertypes
Members list
Type members
Classlikes
Attributes
- Supertypes
-
trait Enumtrait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Value members
Concrete methods
Issue a cancel request
Starts the timer. Suspends until the timer is cancelled.
Starts the timer. Suspends until the timer is cancelled.
Attributes
Ticks of the timer are delivered through this source. Note that ticks are ephemeral.
Ticks of the timer are delivered through this source. Note that ticks are ephemeral.
Attributes
Inherited methods
Link this cancellable to the cancellable group of the current async context.
Link this cancellable to the cancellable group of the current async context.
Attributes
- Inherited from:
- Cancellable
Add this cancellable to the given group after removing it from the previous group in which it was.
Add this cancellable to the given group after removing it from the previous group in which it was.
Attributes
- Inherited from:
- Cancellable
Unlink this cancellable from its group.