def expired(self):
        """Check whether the timer has expired."""
        return (
            datetime.datetime.now(
                datetime.timezone.utc,
            )
            >= self.expiration
        )
Check whether the timer has expired.
cherrypy/lib/locking.py