We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent efa4d7e commit 2e6336eCopy full SHA for 2e6336e
src/huggingface_hub/inference/_mcp/_cli_hacks.py
@@ -73,8 +73,9 @@ def on_input():
73
74
# Wait for user input or exit event
75
# Wait until either the user hits enter or exit_event is set
76
+ exit_task = asyncio.create_task(exit_event.wait())
77
await asyncio.wait(
- [future, exit_event.wait()],
78
+ [future, exit_task],
79
return_when=asyncio.FIRST_COMPLETED,
80
)
81
0 commit comments