TimerExt.register

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

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

Parameters

dg EventDg

delegate to call periodically

init_s double

seconds before initial call of the delegate

period_s double

seconds between subsequent calls of the delegate

Meta