(fut)
| 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): |
nothing calls this directly
no test coverage detected