Auto Reset Timer
- class thread_factory.utilities.timing_tools.auto_reset_timer.AutoResetTimer(interval_sec, callback, daemon=True)[source]
Bases:
IDisposableAutomatically restarts after each invocation.
Thread-safe and supports graceful shutdown.
Exceptions in the callback are caught and logged.
Timer runs as a daemon by default.
- dispose()[source]
Dispose of the timer and stop any scheduled execution. This should be called to clean up the timer when no longer needed.