I want to spin off server process in separate process from terminal and still control it from terminal in foreground. I want to do this without polling keyboard in foreground thread, because polling wastes CPU cycles. Therefore I want to do this asynchronously - foreground thread is waiting for the input while server continues to work.
I want to spin off server process in separate process from terminal and still control it from terminal in foreground. I want to do this without polling keyboard in foreground thread, because polling wastes CPU cycles. Therefore I want to do this asynchronously - foreground thread is waiting for the input while server continues to work.
How can this PEP help me?
See https://bitbucket.org/techtonik/async-console-input/src for a Windows example.