Oct-09-2022, 10:09 PM
Take a look at the sched library unless you like reinventing the wheel.
https://docs.python.org/3/library/sched.html
If you like reinventing the wheel I would think about making an infinite iterator for "looping" through the reminder list. If your while True loop runs frequently, just check if the next(reminder) needs to sent. No need for an extra loop.
https://docs.python.org/3/library/sched.html
If you like reinventing the wheel I would think about making an infinite iterator for "looping" through the reminder list. If your while True loop runs frequently, just check if the next(reminder) needs to sent. No need for an extra loop.