Add RemoteError and current_process to multiprocessing (#445)

This commit is contained in:
David Euresti
2016-08-05 07:19:46 -07:00
committed by Matthias Kramm
parent 382cb5fe20
commit 141318c056
3 changed files with 6 additions and 0 deletions

View File

@@ -2,6 +2,8 @@
from typing import Any, Callable, Iterable, Mapping
from multiprocessing.process import current_process as current_process
class Lock():
def acquire(self, block: bool = ..., timeout: int = ...) -> None: ...
def release(self) -> None: ...

View File

@@ -6,3 +6,5 @@ from typing import Any
class BaseManager():
def register(typeid: str, callable: Any = ...) -> None: ...
class RemoteError(Exception): ...

View File

@@ -0,0 +1,2 @@
def current_process(): ...
def active_children(): ...