(self)
Check whether the queue is empty.
Check whether the queue is empty.
Check whether the queue is empty .
def empty(self):
        """Check whether the queue is empty."""
        with self._lock:
            return not self._queue
def empty ( self ) : with self . _lock : return not self . _queue