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

Method set_exception

Lib/asyncio/streams.py:459–466  ·  view source on GitHub ↗
(self, exc)

Source from the content-addressed store, hash-verified

457 return self._exception
458
459 def set_exception(self, exc):
460 self._exception = exc
461
462 waiter = self._waiter
463 if waiter is not None:
464 self._waiter = None
465 if not waiter.cancelled():
466 waiter.set_exception(exc)
467
468 def _wakeup_waiter(self):
469 """Wakeup read*() functions waiting for data or EOF."""

Callers 8

test_read_exceptionMethod · 0.95
test_exceptionMethod · 0.95
test_exception_cancelMethod · 0.95
connection_lostMethod · 0.45
connection_lostMethod · 0.45

Calls 1

cancelledMethod · 0.45

Tested by 6

test_read_exceptionMethod · 0.76
test_exceptionMethod · 0.76
test_exception_cancelMethod · 0.76