MCPcopy
hub / github.com/aio-libs/aiohttp / set_err

Method set_err

tests/test_streams.py:429–430  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

427
428 @asyncio.coroutine
429 def set_err():
430 stream.set_exception(ValueError())
431
432 t1 = asyncio.Task(stream.readline(), loop=self.loop)
433 t2 = asyncio.Task(set_err(), loop=self.loop)

Callers

nothing calls this directly

Calls 1

set_exceptionMethod · 0.45

Tested by

no test coverage detected