Merge pull request #60 from mihneagiurgea/fix-concurrent-futures

Fix stubs for concurrent.futures
This commit is contained in:
Guido van Rossum
2016-01-26 12:15:36 -08:00

View File

@@ -19,6 +19,8 @@ class Executor:
def submit(self, fn: Callable[..., _T], *args: Any, **kwargs: Any) -> Future[_T]: ...
def map(self, func: Callable[..., _T], *iterables: Any, timeout: float = ...) -> Iterable[_T]: ...
def shutdown(self, wait: bool = ...) -> None: ...
def __enter__(self) -> Executor: ...
def __exit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> bool: ...
class ThreadPoolExecutor(Executor):
def __init__(self, max_workers: int) -> None: ...