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

Function _result_or_cancel

Lib/concurrent/futures/_base.py:314–322  ·  view source on GitHub ↗
(fut, timeout=None)

Source from the content-addressed store, hash-verified

312
313
314def _result_or_cancel(fut, timeout=None):
315 try:
316 try:
317 return fut.result(timeout)
318 finally:
319 fut.cancel()
320 finally:
321 # Break a reference cycle with the exception in self._exception
322 del fut
323
324
325class Future(object):

Callers 1

result_iteratorMethod · 0.85

Calls 2

resultMethod · 0.45
cancelMethod · 0.45

Tested by

no test coverage detected