| 1 |
# Copyright (C) 2015 Yahoo! Inc. All Rights Reserved. |
| 2 |
# |
| 3 |
# Licensed under the Apache License, Version 2.0 (the "License"); you may |
| 4 |
# not use this file except in compliance with the License. You may obtain |
| 5 |
# a copy of the License at |
| 6 |
# |
| 7 |
# http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
# |
| 9 |
# Unless required by applicable law or agreed to in writing, software |
| 10 |
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT |
| 11 |
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the |
| 12 |
# License for the specific language governing permissions and limitations |
| 13 |
# under the License. |
| 14 |
|
| 15 |
# Promote accessible items to this module namespace (for easy access). |
| 16 |
|
| 17 |
from futurist._futures import Future |
| 18 |
from futurist._futures import GreenFuture |
| 19 |
|
| 20 |
from futurist._futures import CancelledError |
| 21 |
from futurist._futures import TimeoutError |
| 22 |
|
| 23 |
from futurist._futures import DynamicThreadPoolExecutor |
| 24 |
from futurist._futures import GreenThreadPoolExecutor |
| 25 |
from futurist._futures import ProcessPoolExecutor |
| 26 |
from futurist._futures import SynchronousExecutor |
| 27 |
from futurist._futures import ThreadPoolExecutor |
| 28 |
|
| 29 |
from futurist._futures import RejectedSubmission |
| 30 |
|
| 31 |
from futurist._futures import ExecutorStatistics |
| 32 |
|
| 33 |
|
| 34 |
__all__ = [ |
| 35 |
'Future', 'GreenFuture', |
| 36 |
|
| 37 |
'CancelledError', 'TimeoutError', |
| 38 |
|
| 39 |
'GreenThreadPoolExecutor', 'ProcessPoolExecutor', |
| 40 |
'SynchronousExecutor', 'ThreadPoolExecutor', |
| 41 |
'DynamicThreadPoolExecutor', |
| 42 |
|
| 43 |
'RejectedSubmission', |
| 44 |
|
| 45 |
'ExecutorStatistics', |
| 46 |
] |