def try_next(self):
        """
        Like next(), but only returns the item that would be selected
        right now, without locking and without changing the queue.
        """
        with self.condition:
            try:
                return self.force[0]
            except IndexError:
                pass

            return self._get_next(False)
def try_next ( self ) : with self . condition : try : return self . force [ 0 ] except IndexError : pass return self . _get_next ( False )
Like next(), but only returns the item that would be selected
        right now, without locking and without changing the queue.