~ubuntu-branches/ubuntu/trusty/python3.4/trusty-proposed

« back to all changes in this revision

Viewing changes to Lib/concurrent/futures/__init__.py

  • Committer: Package Import Robot
  • Author(s): Matthias Klose
  • Date: 2013-11-25 09:44:27 UTC
  • Revision ID: package-import@ubuntu.com-20131125094427-lzxj8ap5w01lmo7f
Tags: upstream-3.4~b1
ImportĀ upstreamĀ versionĀ 3.4~b1

Show diffs side-by-side

added added

removed removed

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