def wait(self):
        """Returns the stored value when invoked."""
        self.event.wait()
        values = self.values
        # Ensure there is no memory leak.
        self.event = self.values = None
        return values
Returns the stored value when invoked.
python/dgl/graphbolt/impl/torch_based_feature_store.py