code: def remove(self, item):
          
          with self.lock:
              if item in self.set:
                  self.set.remove(item)
                  return True
              return False
docs: Remove an item from the set, returning if it was present