pipeline(task): introduce has_finished()

This commit is contained in:
Aleix Conchillo Flaqué
2024-06-04 12:12:19 -07:00
parent 4057fbbcfd
commit af202d4fe5
4 changed files with 9 additions and 10 deletions

View File

@@ -156,7 +156,7 @@ async def main():
await runner.stop_when_done()
async def run_tk():
while True:
while not task.has_finished():
tk_root.update()
tk_root.update_idletasks()
await asyncio.sleep(0.1)