MCPcopy Index your code
hub / github.com/RustPython/RustPython / _get_awaited_by_tasks

Function _get_awaited_by_tasks

Lib/asyncio/tools.py:239–248  ·  view source on GitHub ↗
(pid: int)

Source from the content-addressed store, hash-verified

237
238
239def _get_awaited_by_tasks(pid: int) -> list:
240 try:
241 return get_all_awaited_by(pid)
242 except RuntimeError as e:
243 while e.__context__ is not None:
244 e = e.__context__
245 print(f"Error retrieving tasks: {e}")
246 sys.exit(1)
247 except PermissionError as e:
248 exit_with_permission_help_text()
249
250
251def display_awaited_by_tasks_table(pid: int) -> None:

Callers 2

Calls 4

get_all_awaited_byFunction · 0.85
printFunction · 0.50
exitMethod · 0.45

Tested by

no test coverage detected