(self)
| 79 | return self._output_queue # return the queue for external subscription |
| 80 | |
| 81 | async def get_stream(self): |
| 82 | while True: |
| 83 | try: |
| 84 | output = await asyncio.wait_for(self._output_queue.get(),timeout=0.1) |
| 85 | yield output |
| 86 | except asyncio.TimeoutError: |
| 87 | if not self._is_running and self._process is None: |
| 88 | break #close if process is not running |
| 89 | continue |