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

Method callback

Lib/asyncio/streams.py:242–253  ·  view source on GitHub ↗
(task)

Source from the content-addressed store, hash-verified

240 res = self._client_connected_cb(reader, writer)
241 if coroutines.iscoroutine(res):
242 def callback(task):
243 if task.cancelled():
244 transport.close()
245 return
246 exc = task.exception()
247 if exc is not None:
248 self._loop.call_exception_handler({
249 'message': 'Unhandled exception in client_connected_cb',
250 'exception': exc,
251 'transport': transport,
252 })
253 transport.close()
254
255 self._task = self._loop.create_task(res)
256 self._task.add_done_callback(callback)

Callers

nothing calls this directly

Calls 4

cancelledMethod · 0.45
closeMethod · 0.45
exceptionMethod · 0.45

Tested by

no test coverage detected