lvh / async-pep

Draft PEP for asynchronous IO
ISC License
62 stars 7 forks source link

User Story: Async console input #25

Open techtonik opened 12 years ago

techtonik commented 12 years ago

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.