diff options
author | Brian Quinlan <brian@sweetapp.com> | 2010-09-18 22:35:02 (GMT) |
---|---|---|
committer | Brian Quinlan <brian@sweetapp.com> | 2010-09-18 22:35:02 (GMT) |
commit | 81c4d36928754cc59a48723e4126b5066cc8e8d6 (patch) | |
tree | 9f5b545838f8f8f4e080366ca021cf41fb2a369f /Lib/concurrent/futures/__init__.py | |
parent | 679e0f23280672cdb9144ddeb7022e248b0fdceb (diff) | |
download | cpython-81c4d36928754cc59a48723e4126b5066cc8e8d6.zip cpython-81c4d36928754cc59a48723e4126b5066cc8e8d6.tar.gz cpython-81c4d36928754cc59a48723e4126b5066cc8e8d6.tar.bz2 |
Initial implementation of PEP 3148
Diffstat (limited to 'Lib/concurrent/futures/__init__.py')
-rw-r--r-- | Lib/concurrent/futures/__init__.py | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Lib/concurrent/futures/__init__.py b/Lib/concurrent/futures/__init__.py new file mode 100644 index 0000000..b5231f8 --- /dev/null +++ b/Lib/concurrent/futures/__init__.py @@ -0,0 +1,18 @@ +# Copyright 2009 Brian Quinlan. All Rights Reserved. +# Licensed to PSF under a Contributor Agreement. + +"""Execute computations asynchronously using threads or processes.""" + +__author__ = 'Brian Quinlan (brian@sweetapp.com)' + +from concurrent.futures._base import (FIRST_COMPLETED, + FIRST_EXCEPTION, + ALL_COMPLETED, + CancelledError, + TimeoutError, + Future, + Executor, + wait, + as_completed) +from concurrent.futures.process import ProcessPoolExecutor +from concurrent.futures.thread import ThreadPoolExecutor |