def close(self):
        """Close the tail monitor, discarding any remaining input."""
        self.f.close()
        self.f = None
        self.queue = []
        self.window = []
Close the tail monitor, discarding any remaining input.
recipes/Python/436477_filetailpy/recipe-436477.py