asyncio.asyncio.subprocess.Process.kill()

kill() Kills the child. On Posix OSs the function sends SIGKILL to the child. On Windows kill() is an alias for terminate().

asyncio.asyncio.subprocess.Process.pid

pid The identifier of the process. Note that for processes created by the create_subprocess_shell() function, this attribute is the process identifier of the spawned shell.

asyncio.asyncio.subprocess.Process.returncode

returncode Return code of the process when it exited. A None value indicates that the process has not terminated yet. A negative value -N indicates that the child was terminated by signal N (Unix only).

asyncio.asyncio.subprocess.Process.stderr

stderr Standard error stream (StreamReader), None if the process was created with stderr=None.

asyncio.asyncio.subprocess.Process.send_signal()

send_signal(signal) Sends the signal signal to the child process. Note On Windows, SIGTERM is an alias for terminate(). CTRL_C_EVENT and CTRL_BREAK_EVENT can be sent to processes started with a creationflags parameter which includes CREATE_NEW_PROCESS_GROUP.

asyncio.asyncio.subprocess.Process.communicate()

coroutine communicate(input=None) Interact with process: Send data to stdin. Read data from stdout and stderr, until end-of-file is reached. Wait for process to terminate. The optional input argument should be data to be sent to the child process, or None, if no data should be sent to the child. The type of input must be bytes. communicate() returns a tuple (stdout_data, stderr_data). If a BrokenPipeError or ConnectionResetError exception is raised when writing input into stdin, the exceptio

asyncio.asyncio.subprocess.Process

class asyncio.subprocess.Process A subprocess created by the create_subprocess_exec() or the create_subprocess_shell() function. The API of the Process class was designed to be close to the API of the subprocess.Popen class, but there are some differences: There is no explicit poll() method The communicate() and wait() methods don’t take a timeout parameter: use the wait_for() function The universal_newlines parameter is not supported (only bytes strings are supported) The wait() method of t

asyncio.AbstractEventLoopPolicy.new_event_loop()

new_event_loop() Create and return a new event loop object according to this policy’s rules. If there’s need to set this loop as the event loop for the current context, set_event_loop() must be called explicitly.

asyncio.AbstractEventLoopPolicy.set_event_loop()

set_event_loop(loop) Set the event loop for the current context to loop.

asyncio.AbstractEventLoopPolicy

class asyncio.AbstractEventLoopPolicy Event loop policy. get_event_loop() Get the event loop for the current context. Returns an event loop object implementing the AbstractEventLoop interface. Raises an exception in case no event loop has been set for the current context and the current policy does not specify to create one. It must never return None. set_event_loop(loop) Set the event loop for the current context to loop. new_event_loop() Create and return a new event loop ob