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