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

Function _get_loop

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

Source from the content-addressed store, hash-verified

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

Callers 1

_chain_futureFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected