Skip to content

Commit

Permalink
Use explicit asyncio task creation to fix broken python3.11 (#760)
Browse files Browse the repository at this point in the history
* Use explicit asyncio task creation to fix broken python3.11

* Fix flake8

---------

Co-authored-by: Timon Engelke <[email protected]>
  • Loading branch information
jackpittenger and timonegk authored Aug 15, 2023
1 parent 144cb60 commit 9f7e5c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion catkin_tools/execution/executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,5 +380,7 @@ def run_until_complete(coroutine):
loop = get_loop()
loop.slow_callback_duration = 1.0

task = loop.create_task(coroutine)

# Run jobs
return loop.run_until_complete(coroutine)
return loop.run_until_complete(task)

0 comments on commit 9f7e5c3

Please sign in to comment.