Home
last modified time | relevance | path

Searched refs:futures (Results 1 – 25 of 80) sorted by relevance

1234

/third_party/python/Lib/test/
Dtest_concurrent_futures.py24 from concurrent import futures
25 from concurrent.futures._base import (
28 from concurrent.futures.process import BrokenProcessPool, _check_system_limits
147 futures = [self.executor.submit(time.sleep, 0.1)
149 for f in futures:
154 executor_type = futures.ThreadPoolExecutor
158 executor_type = futures.ProcessPoolExecutor
172 executor_type = futures.ProcessPoolExecutor
184 executor_type = futures.ProcessPoolExecutor
228 futures = [self.executor.submit(get_init_status)
[all …]
Dtest_genericalias.py10 from concurrent.futures import Future
11 from concurrent.futures.thread import _WorkItem
/third_party/python/Doc/library/
Dconcurrent.futures.rst1 :mod:`concurrent.futures` --- Launching parallel tasks
4 .. module:: concurrent.futures
9 **Source code:** :source:`Lib/concurrent/futures/thread.py`
10 and :source:`Lib/concurrent/futures/process.py`
14 The :mod:`concurrent.futures` module provides a high-level interface for
50 The returned iterator raises a :exc:`concurrent.futures.TimeoutError`
73 when the currently pending futures are done executing. Calls to
78 pending futures are done executing and the resources associated with the
81 freed when all pending futures are done executing. Regardless of the
83 pending futures are done executing.
[all …]
Dasyncio-future.rst4 .. _asyncio-futures:
10 **Source code:** :source:`Lib/asyncio/futures.py`,
70 Wrap a :class:`concurrent.futures.Future` object in a
257 :class:`concurrent.futures.Future`. Key differences include:
259 - unlike asyncio Futures, :class:`concurrent.futures.Future`
274 :func:`concurrent.futures.wait` and
275 :func:`concurrent.futures.as_completed` functions.
278 but :func:`concurrent.futures.cancel` does not.
Dconcurrent.rst6 * :mod:`concurrent.futures` -- Launching parallel tasks
Dconcurrency.rst20 concurrent.futures.rst
Dasyncio-dev.rst91 :class:`concurrent.futures.Future` to access the result::
106 :class:`concurrent.futures.ThreadPoolExecutor` to execute
118 with a :class:`concurrent.futures.ProcessPoolExecutor` to execute
Dasyncio.rst57 * :ref:`bridge <asyncio-futures>` callback-based libraries and code
/third_party/python/Lib/asyncio/
Dtasks.py12 import concurrent.futures
25 from . import futures
61 if futures._get_loop(t) is loop and not t.done()}
74 class Task(futures._PyFuture): # Inherit Python Task implementation
116 if self._state == futures._PENDING and self._log_destroy_pending:
255 if futures._get_loop(result) is not self._loop:
344 FIRST_COMPLETED = concurrent.futures.FIRST_COMPLETED
345 FIRST_EXCEPTION = concurrent.futures.FIRST_EXCEPTION
346 ALL_COMPLETED = concurrent.futures.ALL_COMPLETED
365 if futures.isfuture(fs) or coroutines.iscoroutine(fs):
[all …]
D__main__.py4 import concurrent.futures
11 from . import futures
23 future = concurrent.futures.Future()
51 futures._chain_future(repl_future, future)
Dfutures.py7 import concurrent.futures
317 if exc_class is concurrent.futures.CancelledError:
319 elif exc_class is concurrent.futures.TimeoutError:
321 elif exc_class is concurrent.futures.InvalidStateError:
370 concurrent.futures.Future):
373 concurrent.futures.Future):
408 assert isinstance(future, concurrent.futures.Future), \
D__init__.py12 from .futures import *
27 futures.__all__ +
Dbase_events.py18 import concurrent.futures
42 from . import futures
191 futures._get_loop(fut).stop()
424 return futures.Future(loop=self)
619 new_task = not futures.isfuture(future)
808 executor = concurrent.futures.ThreadPoolExecutor(
812 return futures.wrap_future(
816 if not isinstance(executor, concurrent.futures.ThreadPoolExecutor):
Dwindows_events.py20 from . import futures
48 class _OverlappedFuture(futures.Future):
96 class _BaseWaitHandleFuture(futures.Future):
/third_party/python/Lib/test/test_asyncio/
Dtest_futures.py3 import concurrent.futures
12 from asyncio import futures
377 from asyncio.futures import _copy_future_state
478 ex = concurrent.futures.ThreadPoolExecutor(1)
495 ex = concurrent.futures.ThreadPoolExecutor(1)
506 ex = concurrent.futures.ThreadPoolExecutor(1)
520 ex = concurrent.futures.ThreadPoolExecutor(1)
529 f1 = concurrent.futures.Future()
537 f1 = concurrent.futures.Future()
593 futures._set_result_unless_cancelled(fut, 2)
[all …]
Dtest_tasks.py21 from asyncio import futures
2964 @unittest.skipUnless(hasattr(futures, '_CFuture') and
2971 Future = getattr(futures, '_CFuture', None)
2995 @unittest.skipUnless(hasattr(futures, '_CFuture') and
3002 Future = getattr(futures, '_CFuture', None)
3011 Future = futures._PyFuture
3014 @unittest.skipUnless(hasattr(futures, '_CFuture'),
3019 Future = getattr(futures, '_CFuture', None)
3028 Future = futures._PyFuture
3031 @unittest.skipUnless(hasattr(futures, '_CFuture'),
[all …]
Dutils.py33 from asyncio import futures
117 raise futures.TimeoutError()
/third_party/rust/crates/cxx/book/src/
Dasync.md28 channel (such as [`futures::channel::oneshot`]) represented in an opaque Rust
31 [`futures::channel::oneshot`]: https://docs.rs/futures/0.3.8/futures/channel/oneshot/index.html
36 use futures::channel::oneshot;
/third_party/python/Lib/test/test_importlib/partial/
Dcfimport.py13 from concurrent.futures import ThreadPoolExecutor
20 from concurrent.futures.thread import ThreadPoolExecutor
/third_party/python/Lib/concurrent/futures/
D_base.py146 def __init__(self, futures): argument
147 self.futures = sorted(futures, key=id)
150 for future in self.futures:
154 for future in self.futures:
D__init__.py8 from concurrent.futures._base import (FIRST_COMPLETED,
Dthread.py8 from concurrent.futures import _base
/third_party/python/Misc/NEWS.d/
D3.6.3.rst7 Re-allow arbitrary iterables in `concurrent.futures.as_completed()`. Fixes
/third_party/python/Lib/distutils/command/
Dbuild_ext.py456 from concurrent.futures import ThreadPoolExecutor
465 futures = [executor.submit(self.build_extension, ext)
467 for ext, fut in zip(self.extensions, futures):
/third_party/python/Lib/
Dcompileall.py88 from concurrent.futures.process import _check_system_limits
94 from concurrent.futures import ProcessPoolExecutor

1234