Fix contract for Timer.rearm.
This commit is contained in:
parent
5010085340
commit
0122e665db
|
@ -1145,7 +1145,7 @@ struct Timer {
|
|||
/** Resets the timer to the specified timeout
|
||||
*/
|
||||
void rearm(Duration dur, bool periodic = false) nothrow
|
||||
in { assert(dur > 0.seconds, "Negative timer duration specified."); }
|
||||
in { assert(dur >= 0.seconds, "Negative timer duration specified."); }
|
||||
body { m_driver.timers.set(m_id, dur, periodic ? dur : 0.seconds); }
|
||||
|
||||
/** Resets the timer and avoids any firing.
|
||||
|
|
Loading…
Reference in a new issue