def peek(self) -> T:
        """Get an item from the set.

        Blocks until an item is available.
        """

        with self.read_lock:
            self.event_nonempty.wait()
            if self.event_shutdown.is_set():
                raise StopIteration("Set is shutdown.")

            return next(iter(self.content))
Get an item from the set.

        Blocks until an item is available.
        
src/core/trulens/core/utils/containers.py