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

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
Register all the methods of a class or instance object with
with gearman.

'name' is an optional prefix for function names (name.method_name)

src/d/a/danga-gearman-2.0.0/tests.py   danga-gearman(Download)
        self.worker.register_function("fail", fail)
        self.worker.register_function("sleep", sleep, timeout=1)
        self.worker.register_class(ObjectWorker())
        self.worker.register_class(ClassWorker())
        class Hooks(object):