Lines Matching defs:futures
7 import concurrent.futures
31 """This class is *almost* compatible with concurrent.futures.Future.
44 methods in the concurrent.futures package.
320 if exc_class is concurrent.futures.CancelledError:
322 elif exc_class is concurrent.futures.TimeoutError:
324 elif exc_class is concurrent.futures.InvalidStateError:
331 """Copy state from a future to a concurrent.futures.Future."""
348 The other Future may be a concurrent.futures.Future.
366 """Chain two futures so that when one completes, so does the other.
370 Compatible with both asyncio.Future and concurrent.futures.Future.
373 concurrent.futures.Future):
376 concurrent.futures.Future):
410 """Wrap concurrent.futures.Future object."""
413 assert isinstance(future, concurrent.futures.Future), \
414 f'concurrent.futures.Future is expected, got {future!r}'