multiprocessing: add shutdown_timeout param to BaseManager (#7692)

python/cpython#32112
This commit is contained in:
Jelle Zijlstra
2022-04-25 21:12:56 -07:00
committed by GitHub
parent 85a6f0ffe9
commit 573539ba2a

View File

@@ -76,9 +76,21 @@ class Server:
def accept_connection(self, c: Connection, name: str) -> None: ...
class BaseManager:
def __init__(
self, address: Any | None = ..., authkey: bytes | None = ..., serializer: str = ..., ctx: BaseContext | None = ...
) -> None: ...
if sys.version_info >= (3, 11):
def __init__(
self,
address: Any | None = ...,
authkey: bytes | None = ...,
serializer: str = ...,
ctx: BaseContext | None = ...,
*,
shutdown_timeout: float = ...,
) -> None: ...
else:
def __init__(
self, address: Any | None = ..., authkey: bytes | None = ..., serializer: str = ..., ctx: BaseContext | None = ...
) -> None: ...
def get_server(self) -> Server: ...
def connect(self) -> None: ...
def start(self, initializer: Callable[..., Any] | None = ..., initargs: Iterable[Any] = ...) -> None: ...