class documentation
A class for running programs asynchronously.
This class provides methods to start and stop python programs It captures the program's standard output and provides methods to check the execution status and retrieve the program output.
Method | __init__ |
Initialize the ProgramRunner. |
Method | start |
Start the specified program. |
Method | stop |
Stop the currently running program. |
Property | exit |
Get the exit status of the executed program. |
Property | is |
Check if a program is currently running. |
Property | output |
Get the standard output of the executed program. |
Instance Variable | __execution |
Undocumented |
Instance Variable | __output |
Undocumented |
Instance Variable | __process |
Undocumented |
Start the specified program.
Parameters | |
program | The path to the program file to be executed. |
execution | An event which notify when the execution has started |
Raises | |
Unknown exception | ExecutionException: If an error occurs during program execution. |