summaryrefslogtreecommitdiff
path: root/python2/futures/__init__.py
blob: 27a5720eeec39ff93f754947fa7c2f37f7fcca2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copyright 2009 Brian Quinlan. All Rights Reserved. See LICENSE file.

"""Execute computations asynchronously using threads or processes."""

__author__ = 'Brian Quinlan (brian@sweetapp.com)'

from futures._base import (FIRST_COMPLETED, FIRST_EXCEPTION,
                           ALL_COMPLETED, RETURN_IMMEDIATELY,
                           CancelledError, TimeoutError,
                           Future, FutureList) 
from futures.thread import ThreadPoolExecutor

try:
    import multiprocessing
except ImportError:
    pass
else:
    from futures.process import ProcessPoolExecutor