Oct-19-2022, 03:20 AM
Oct-23-2022, 12:16 AM
Yes, BAXTER waits for a command, so the UserInput() is blocking it.
I tried getting around it by trying multithreading, but it drastically slows down the main loop (BAXTER()) when running the scheduler in the background.
Is there any way to prevent UserInput() from blocking the scheduler?
UserInput()
I tried getting around it by trying multithreading, but it drastically slows down the main loop (BAXTER()) when running the scheduler in the background.
Is there any way to prevent UserInput() from blocking the scheduler?
UserInput()
#------------------------------------------------------------------------------------- # User Input Function #------------------------------------------------------------------------------------- def UserInput(): command = str(Prompt.ask("[yellow]"+Commander+"[/yellow]")) return command #-------------------------------------------------------------------------------------