# Stubs for tornado_py3.process (Python 3) # # NOTE: This dynamically typed stub was automatically generated by stubgen. import subprocess from tornado_py3.concurrent import Future from typing import Any, Callable, Optional CalledProcessError = subprocess.CalledProcessError def cpu_count() -> int: ... def fork_processes(num_processes: Optional[int], max_restarts: Optional[int]=...) -> int: ... def task_id() -> Optional[int]: ... class Subprocess: STREAM: Any = ... io_loop: Any = ... stdin: Any = ... stdout: Any = ... stderr: Any = ... proc: Any = ... pid: Any = ... returncode: Any = ... def __init__(self, *args: Any, **kwargs: Any) -> None: ... def set_exit_callback(self, callback: Callable[[int], None]) -> None: ... def wait_for_exit(self, raise_error: bool=...) -> Future[int]: ... @classmethod def initialize(cls: Any) -> None: ... @classmethod def uninitialize(cls: Any) -> None: ...