mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
Merge pull request #60 from mihneagiurgea/fix-concurrent-futures
Fix stubs for concurrent.futures
This commit is contained in:
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user