Searched refs:apply_async (Results 1 – 10 of 10) sorted by relevance
/external/python/cpython2/Doc/includes/ |
D | mp_pool.py | 68 results = [pool.apply_async(calculate, t) for t in TASKS] 190 res = pool.apply_async(calculate, TASKS[0]) 223 r = pool.apply_async(mul, (7, 8), callback=A.append) 249 result = pool.apply_async(time.sleep, [0.5]) 269 results = [pool.apply_async(time.sleep, [DELTA]) for i in range(100)] 288 results = [pool.apply_async(time.sleep, [DELTA]) for i in range(100)]
|
/external/webrtc/webrtc/tools/barcode_tools/ |
D | helper_functions.py | 93 future = process_pool.apply_async(action, args=(file_name,), kwds=kwargs)
|
/external/autotest/client/site_tests/power_CameraSuspend/ |
D | power_CameraSuspend.py | 48 result = pool.apply_async(async_suspend)
|
/external/toolchain-utils/bestflags/ |
D | pipeline_process.py | 113 work_pool.apply_async(
|
/external/skia/tools/ |
D | check-headers-self-sufficient | 157 pool.apply_async(compile_header, args=(path, ), callback=print_and_exit_if)
|
/external/autotest/client/site_tests/power_HotCPUSuspend/ |
D | power_HotCPUSuspend.py | 79 results = [pool.apply_async(cpu_stress) for _ in xrange(workers)]
|
/external/python/cpython2/Lib/multiprocessing/ |
D | pool.py | 244 return self.apply_async(func, args, kwds).get() 289 def apply_async(self, func, args=(), kwds={}, callback=None): member in Pool
|
/external/python/cpython2/Lib/test/ |
D | test_multiprocessing.py | 1164 res = self.pool.apply_async(sqr, (7, TIMEOUT1,)) 1170 res = self.pool.apply_async(sqr, (6, TIMEOUT2 + 1.0)) 1283 res = p.apply_async(unpickleable_result) 1299 results.append(p.apply_async(sqr, (i, ))) 1327 results.append(p.apply_async(sqr, (i, 0.3)))
|
/external/python/cpython2/Doc/library/ |
D | multiprocessing.rst | 282 res = pool.apply_async(f, (20,)) # runs in *only* one process 286 res = pool.apply_async(os.getpid, ()) # runs in *only* one process 290 multiple_results = [pool.apply_async(os.getpid, ()) for i in range(4)] 294 res = pool.apply_async(time.sleep, (10,)) 1819 result is ready, so :meth:`apply_async` is better suited for performing 1823 .. method:: apply_async(func[, args[, kwds[, callback]]]) 1889 The class of the result returned by :meth:`Pool.apply_async` and 1923 result = pool.apply_async(f, (10,)) # evaluate "f(10)" asynchronously in a single process 1933 result = pool.apply_async(time.sleep, (10,))
|
/external/python/cpython2/Doc/whatsnew/ |
D | 2.6.rst | 623 by calling :meth:`apply` or :meth:`apply_async` to add a single request, 679 p.apply_async(factorial, (N, d))
|