TimerExt.register

Registers a timer with the extension. The provided delegate will be called repeatedly according to the specified period, as long as it returns true.

  1. void register(EventDg dg, double period_s)
    class TimerExt
    void
    register
    (
    scope EventDg dg
    ,
    double period_s
    )
  2. void register(EventDg dg, double init_s, double period_s)

Parameters

dg EventDg

delegate to call periodically

period_s double

seconds between calls of the delegate

Meta