__init__.py 906 B

123456789101112131415161718192021222324
  1. # Copyright 2009 Brian Quinlan. All Rights Reserved.
  2. # Licensed to PSF under a Contributor Agreement.
  3. """Execute computations asynchronously using threads or processes."""
  4. import warnings
  5. from concurrent.futures import (FIRST_COMPLETED,
  6. FIRST_EXCEPTION,
  7. ALL_COMPLETED,
  8. CancelledError,
  9. TimeoutError,
  10. Future,
  11. Executor,
  12. wait,
  13. as_completed,
  14. ProcessPoolExecutor,
  15. ThreadPoolExecutor)
  16. __author__ = 'Brian Quinlan (brian@sweetapp.com)'
  17. warnings.warn('The futures package has been deprecated. '
  18. 'Use the concurrent.futures package instead.',
  19. DeprecationWarning)