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

Method cb

Lib/asyncio/unix_events.py:455–459  ·  view source on GitHub ↗
(fut)

Source from the content-addressed store, hash-verified

453
454 def _sock_add_cancellation_callback(self, fut, sock):
455 def cb(fut):
456 if fut.cancelled():
457 fd = sock.fileno()
458 if fd != -1:
459 self.remove_writer(fd)
460 fut.add_done_callback(cb)
461
462 def _stop_serving(self, sock):

Callers

nothing calls this directly

Calls 3

cancelledMethod · 0.45
filenoMethod · 0.45
remove_writerMethod · 0.45

Tested by

no test coverage detected