From 9601a76b54ad83c78dc09b260b21274af950f339 Mon Sep 17 00:00:00 2001 From: Luka Sterbic Date: Tue, 23 May 2017 16:33:46 -0700 Subject: [PATCH] Use AsyncResult from multiprocessing.pool (#1317) --- stdlib/3/multiprocessing/__init__.pyi | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/stdlib/3/multiprocessing/__init__.pyi b/stdlib/3/multiprocessing/__init__.pyi index c875e1786..40aed12f4 100644 --- a/stdlib/3/multiprocessing/__init__.pyi +++ b/stdlib/3/multiprocessing/__init__.pyi @@ -4,6 +4,7 @@ from typing import Any, Callable, Iterable, Mapping, Optional, Dict, List from multiprocessing.context import BaseContext from multiprocessing.managers import SyncManager +from multiprocessing.pool import AsyncResult from multiprocessing.process import current_process as current_process class Lock(): @@ -12,12 +13,6 @@ class Lock(): def __enter__(self) -> 'Lock': ... def __exit__(self, exc_type, exc_value, tb) -> None: ... -class AsyncResult(): - def get(self, timeout: float = ...) -> Any: ... - def wait(self, timeout: float = ...) -> None: ... - def ready(self) -> bool: ... - def successful(self) -> bool: ... - class Event(object): def __init__(self, *, ctx: BaseContext) -> None: ... def is_set(self) -> bool: ...