Home
last modified time | relevance | path

Searched refs:apply_async (Results 1 – 10 of 10) sorted by relevance

/external/python/cpython2/Doc/includes/
Dmp_pool.py68 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/
Dhelper_functions.py93 future = process_pool.apply_async(action, args=(file_name,), kwds=kwargs)
/external/autotest/client/site_tests/power_CameraSuspend/
Dpower_CameraSuspend.py48 result = pool.apply_async(async_suspend)
/external/toolchain-utils/bestflags/
Dpipeline_process.py113 work_pool.apply_async(
/external/skia/tools/
Dcheck-headers-self-sufficient157 pool.apply_async(compile_header, args=(path, ), callback=print_and_exit_if)
/external/autotest/client/site_tests/power_HotCPUSuspend/
Dpower_HotCPUSuspend.py79 results = [pool.apply_async(cpu_stress) for _ in xrange(workers)]
/external/python/cpython2/Lib/multiprocessing/
Dpool.py244 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/
Dtest_multiprocessing.py1164 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/
Dmultiprocessing.rst282 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/
D2.6.rst623 by calling :meth:`apply` or :meth:`apply_async` to add a single request,
679 p.apply_async(factorial, (N, d))