This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author slytomcat
Recipients slytomcat
Date 2017-02-15.14:54:10
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1487170450.59.0.269062661251.issue29569@psf.upfronthosting.co.za>
In-reply-to
Content
I think that functionality of threading.Timer class can be easily extended to generate the sequence of runs with specified period. The idea comes from the GLib.timeout_add function. 

Run method of threading.Timer should look like:

    def run(self):
        """Continue execution after wait till function returns True"""
        while(not self.finished.wait(self.interval)):
            if not self.function(*self.args, **self.kwargs):
                break
        self.finished.set()
History
Date User Action Args
2017-02-15 14:54:10slytomcatsetrecipients: + slytomcat
2017-02-15 14:54:10slytomcatsetmessageid: <1487170450.59.0.269062661251.issue29569@psf.upfronthosting.co.za>
2017-02-15 14:54:10slytomcatlinkissue29569 messages
2017-02-15 14:54:10slytomcatcreate