Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(4)  |  Call(2)  |  Derive(0)  |  Import(2)
Factory function to create a Timer object.

Timers call a function after a specified number of seconds:

    t = Timer(30.0, f, args=[], kwargs={})
    t.start()
    t.cancel()     # stop the timer's action if it's still waiting

        def Timer(*args, **kwargs):
    """Factory function to create a Timer object.

    Timers call a function after a specified number of seconds:

        t = Timer(30.0, f, args=[], kwargs={})
        t.start()
        t.cancel()     # stop the timer's action if it's still waiting

    """
    return _Timer(*args, **kwargs)
        


src/c/i/circus-0.10.0/circus/plugins/flapping.py   circus(Download)
from circus.fixed_threading import Timer
import time
 
from circus import logger
from circus.plugins import CircusPlugin
                        self.cast("start", name=watcher_name)
 
                    timer = Timer(self._get_conf(conf, 'retry_in'), _start)
                    timer.start()
                    self.timers[watcher_name] = timer

src/c/i/circus-HEAD/circus/plugins/flapping.py   circus(Download)
from circus.fixed_threading import Timer
import time
 
from circus import logger
from circus.plugins import CircusPlugin
                        self.cast("start", name=watcher_name)
 
                    timer = Timer(self._get_conf(conf, 'retry_in'), _start)
                    timer.start()
                    self.timers[watcher_name] = timer