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

All Samples(3)  |  Call(0)  |  Derive(3)  |  Import(0)

src/d/p/dpxdt-HEAD/dpxdt/client/timer_worker.py   dpxdt(Download)
class TimerThread(workers.WorkerThread):
    """"Worker thread that tracks many timers."""
 
    def __init__(self, *args):
        """Initializer."""

src/d/p/dpxdt-HEAD/dpxdt/client/fetch_worker.py   dpxdt(Download)
class FetchThread(workers.WorkerThread):
    """Worker thread for fetching URLs."""
 
    def handle_item(self, item):
        start_time = time.time()

src/d/p/dpxdt-HEAD/tests/workers_test.py   dpxdt(Download)
class EchoThread(workers.WorkerThread):
    def handle_item(self, item):
        if item.should_die:
            raise Exception('Dying on %d' % item.input_number)
        item.output_number = item.input_number