()
| 169 | |
| 170 | |
| 171 | async def _main(): |
| 172 | exec_queue = asyncio.Queue() |
| 173 | reader = asyncio.create_task(_read_stdin(exec_queue)) |
| 174 | try: |
| 175 | while True: |
| 176 | message = await exec_queue.get() |
| 177 | if message is None: |
| 178 | return |
| 179 | await _handle_exec(message) |
| 180 | finally: |
| 181 | reader.cancel() |
| 182 | |
| 183 | |
| 184 | if __name__ == "__main__": |
no test coverage detected