From 9f7e5c362a61e0f28ec7b27ee5086444269d3d6b Mon Sep 17 00:00:00 2001 From: Jack <31329139+realSaddy@users.noreply.github.com> Date: Tue, 15 Aug 2023 17:29:37 -0500 Subject: [PATCH] Use explicit asyncio task creation to fix broken python3.11 (#760) * Use explicit asyncio task creation to fix broken python3.11 * Fix flake8 --------- Co-authored-by: Timon Engelke --- catkin_tools/execution/executor.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/catkin_tools/execution/executor.py b/catkin_tools/execution/executor.py index bda35bbc..daf1e16d 100644 --- a/catkin_tools/execution/executor.py +++ b/catkin_tools/execution/executor.py @@ -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)