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

Function _convert_future_exc

Lib/asyncio/futures.py:330–337  ·  view source on GitHub ↗
(exc)

Source from the content-addressed store, hash-verified

328
329
330def _convert_future_exc(exc):
331 exc_class = type(exc)
332 if exc_class is concurrent.futures.CancelledError:
333 return exceptions.CancelledError(*exc.args).with_traceback(exc.__traceback__)
334 elif exc_class is concurrent.futures.InvalidStateError:
335 return exceptions.InvalidStateError(*exc.args).with_traceback(exc.__traceback__)
336 else:
337 return exc
338
339
340def _set_concurrent_future_state(concurrent, source):

Callers 2

_copy_future_stateFunction · 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…