dbader / schedule

Python job scheduling for humans.
https://schedule.readthedocs.io/
MIT License
11.77k stars 961 forks source link

Added second example using class extension for background execution #610

Open Viermusketiere opened 9 months ago

Viermusketiere commented 9 months ago

Added a second example for the background execution of the scheduler. It utilizes threading as the first example does but encapsulates the thread handling by extending the schedular base class. From a user perspective it simplifies using background execution by only exposing two more functions. In addition this approach should be fully compatible with the creation of multiple threaded schedulers just like the base class is.