PeriodicTimer - acadet/ludivine GitHub Wiki

Generic periodic timer. Executes specific action each period.

References

Constructors

PeriodicTimer<T>(handler : Action<T>, period : number)

Builds and starts timer.

Parameters

handler Action to execute

period Period in milliseconds

PeriodicTimer<T>(handler : Action<T>, period : number, argument : T)

Builds and starts timer.

Parameters

handler Action to execute

period Period in milliseconds

argument Argument for handler


Methods

stop() : void

Stops timer.