1 | n/a | # Copyright 2009 Brian Quinlan. All Rights Reserved. |
---|
2 | n/a | # Licensed to PSF under a Contributor Agreement. |
---|
3 | n/a | |
---|
4 | n/a | """Execute computations asynchronously using threads or processes.""" |
---|
5 | n/a | |
---|
6 | n/a | __author__ = 'Brian Quinlan (brian@sweetapp.com)' |
---|
7 | n/a | |
---|
8 | n/a | from concurrent.futures._base import (FIRST_COMPLETED, |
---|
9 | n/a | FIRST_EXCEPTION, |
---|
10 | n/a | ALL_COMPLETED, |
---|
11 | n/a | CancelledError, |
---|
12 | n/a | TimeoutError, |
---|
13 | n/a | Future, |
---|
14 | n/a | Executor, |
---|
15 | n/a | wait, |
---|
16 | n/a | as_completed) |
---|
17 | n/a | from concurrent.futures.process import ProcessPoolExecutor |
---|
18 | n/a | from concurrent.futures.thread import ThreadPoolExecutor |
---|