MCPcopy Index your code
hub / github.com/python/cpython / _get_loop

Function _get_loop

Lib/asyncio/futures.py:311–320  ·  view source on GitHub ↗
(fut)

Source from the content-addressed store, hash-verified

309
310
311def _get_loop(fut):
312 # Tries to call Future.get_loop() if it's available.
313 # Otherwise fallbacks to using the old '_loop' property.
314 try:
315 get_loop = fut.get_loop
316 except AttributeError:
317 pass
318 else:
319 return get_loop()
320 return fut._loop
321
322
323def _set_result_unless_cancelled(fut, result):

Callers 1

_chain_futureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…