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

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

src/i/n/input-lib-HEAD/packages/celery/celery/tests/test_pool.py   input-lib(Download)
        myerrback = mycallback
 
        res = p.apply_async(do_something, args=[10], callbacks=[mycallback])
        res2 = p.apply_async(raise_something, args=[10], errbacks=[myerrback])
        res3 = p.apply_async(do_something, args=[20], callbacks=[mycallback])
                                       scratchpad.get(2))
 
        res3 = p.apply_async(do_something, args=[30], callbacks=[mycallback])
 
        self.assertEqual(res3.get(), 900)