MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / _wait_for_one

Function _wait_for_one

tools/python-3.11.9-amd64/Lib/asyncio/tasks.py:610–615  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

608 timeout_handle.cancel()
609
610 async def _wait_for_one():
611 f = await done.get()
612 if f is None:
613 # Dummy value from _on_timeout().
614 raise exceptions.TimeoutError
615 return f.result() # May raise f.exception().
616
617 for f in todo:
618 f.add_done_callback(_on_completion)

Callers 1

as_completedFunction · 0.85

Calls 2

getMethod · 0.45
resultMethod · 0.45

Tested by

no test coverage detected