(handle, interval, write_func)
| 159 | return handle.readline() |
| 160 | |
| 161 | async def tail_async(handle, interval, write_func): |
| 162 | loop = asyncio.get_event_loop() |
| 163 | |
| 164 | while not handle.closed: |
| 165 | try: |
| 166 | line = await loop.run_in_executor(None, readline, handle) |
| 167 | except NoNewData: |
| 168 | await asyncio.sleep(interval) |
| 169 | else: |
| 170 | await write_func(line) |
| 171 | |
| 172 | async def run_fully_async(handles, interval, output_path): |
| 173 | async with ( |
no outgoing calls
no test coverage detected