Skip to content

Commit

Permalink
Add possible values to timer missed_tick_policy parameter documentation
Browse files Browse the repository at this point in the history
Signed-off-by: Mathias L. Baumann <mathias.baumann@frequenz.com>
  • Loading branch information
Marenz committed May 24, 2023
1 parent 68b6610 commit ae6a8ae
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/frequenz/channels/util/_timer.py
Original file line number Diff line number Diff line change
Expand Up @@ -365,9 +365,10 @@ def __init__(
Args:
interval: The time between timer ticks. Must be at least
1 microsecond.
missed_tick_policy: The policy of the timer when it misses
a tick. See the documentation of `MissedTickPolicy` for
details.
missed_tick_policy: The policy of the timer when it misses a tick.
Commonly one of `TriggerAllMissed`, `SkipMissedAndResync`, `SkipMissedAndDrift`
or a custom class deriving from `MissedTickPolicy`. See the
documentation of the each class for more details.
auto_start: Whether the timer should be started when the
instance is created. This can only be `True` if there is
already a running loop or an explicit `loop` that is running
Expand Down

0 comments on commit ae6a8ae

Please sign in to comment.