A timer class that uses an Observable pattern to allow for subscribing to ticks.
Returns the number of times the timer has ticked (onNext);
Returns true if the timer is running.
Protected
Cancels the timer and returns true if the timer was running. Returns false if already cancelled.
Forces the onComplete to propagate and returns the number of times the timer ticked.
Stops the timer and resets the count.
Starts the timer.
Stops the timer. Is the same as cancel.
Static
Initializes a new timer and starts it.
Generated using TypeDoc
A timer class that uses an Observable pattern to allow for subscribing to ticks.