MCPcopy Create free account
hub / github.com/python/cpython / _result_or_cancel

Function _result_or_cancel

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

Source from the content-addressed store, hash-verified

306
307
308def _result_or_cancel(fut, timeout=None):
309 try:
310 try:
311 return fut.result(timeout)
312 finally:
313 fut.cancel()
314 finally:
315 # Break a reference cycle with the exception in self._exception
316 del fut
317
318
319class Future(object):

Callers 1

result_iteratorMethod · 0.85

Calls 2

resultMethod · 0.45
cancelMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…