def add(self, item: T):
        """Add an item to the set.

        Blocks if set is full.
        """

        with self.write_lock:
            self.event_nonfull.wait()
            self.content.add(item)

            self.event_nonempty.set()
            if len(self.content) >= self.max_size:
                self.event_nonfull.clear()
Add an item to the set.

        Blocks if set is full.
        
src/core/trulens/core/utils/containers.py