remotivelabs.topology.time

Utilities for scheduling periodic callbacks.

remotivelabs.topology.time.async_ticker.create_ticker creates an asyncio.Task that calls a remotivelabs.topology.time.callback.OnTickCallback at a fixed interval. The ticker compensates for callback execution time to stay on schedule, and can be stopped by returning True from the callback or by cancelling the task.