You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`Timer()`, `Timer.timeout()`, `Timer.periodic()` and `Timer.reset()` now
take an optional `start_delay` option to make the timer start after some
delay.
Copy file name to clipboardExpand all lines: RELEASE_NOTES.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,17 @@
2
2
3
3
## Summary
4
4
5
-
<!-- Here goes a general summary of what this release is about -->
5
+
The `Timer` now can be started with a delay.
6
6
7
7
## Upgrading
8
8
9
9
<!-- Here goes notes on how to upgrade from previous versions, including deprecations and what they should be replaced with -->
10
10
11
11
## New Features
12
12
13
-
<!-- Here goes the main new features and examples or instructions on how to use them -->
13
+
*`Timer()`, `Timer.timeout()`, `Timer.periodic()` and `Timer.reset()` now take an optional `start_delay` option to make the timer start after some delay.
14
+
15
+
This can be useful, for example, if the timer needs to be *aligned* to a particular time. The alternative to this would be to `sleep()` for the time needed to align the timer, but if the `sleep()` call gets delayed because the event loop is busy, then a re-alignment is needed and this could go on for a while. The only way to guarantee a certain alignment (with a reasonable precision) is to delay the timer start.
0 commit comments