#!/usr/bin/env python3
+# © Copyright 2021-2022, Scott Gasch
+
"""Several helpers to keep track of internal state via periodic
polling. StateTracker expects to be invoked periodically to maintain
state whereas the others automatically update themselves and,
-optionally, expose an event for client code to wait on state changes."""
+optionally, expose an event for client code to wait on state changes.
+
+"""
import datetime
import logging
"""
@background_thread
- def pace_maker(self, should_terminate) -> None:
+ def pace_maker(self, should_terminate: threading.Event) -> None:
"""Entry point for a background thread to own calling heartbeat()
at regular intervals so that the main thread doesn't need to do
so.