(&self)
| 608 | |
| 609 | #[pymethod] |
| 610 | fn close(&self) -> std::io::Result<()> { |
| 611 | let fd = self.epoll_fd.write().take(); |
| 612 | if let Some(fd) = fd { |
| 613 | nix::unistd::close(fd.into_raw_fd())?; |
| 614 | } |
| 615 | Ok(()) |
| 616 | } |
| 617 | |
| 618 | #[pygetset] |
| 619 | fn closed(&self) -> bool { |
no test coverage detected