WebCola
Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Timer

Index

Methods

Methods

restart

  • restart(callbackFn: function, delay?: number, time?: number): void
  • Restart a timer with the specified callback and optional delay and time. This is equivalent to stopping this timer and creating a new timer with the specified arguments, although this timer retains the original invocation priority.

    Parameters

    • callbackFn: function
        • (elapsed: number): void
        • Parameters

          • elapsed: number

          Returns void

    • Optional delay: number

      An optional numeric delay in milliseconds (default = 0) relative to time.

    • Optional time: number

      An optional time in milliseconds relative to which the delay is calculated (default = now).

    Returns void

stop

  • stop(): void
  • Stop the timer.

    Returns void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc