class_docstr: Wraps a function into a future asynchronously executed by a Python
  ``threading.Thread`.  The function is being executed upon instantiation of
  this object.
class_docstr_tok: ["Wraps","a","function","into","a","future","asynchronously","executed","by","a","Python","``","threading.Thread","`",".","The","function","is","being","executed","upon","instantiation","of","this","object","."]
docstr: Blocks the current thread until the result becomes available and returns it.
docstr_tok: ["Blocks","the","current","thread","until","the","result","becomes","available","and","returns","it","."]
code: def wait(self):
      """Blocks the current thread until the result becomes available and returns it."""
      self.thread.join()
      return self.buf[0]
  
file_path: dgl/python/dgl/storages/base.py
imports: import threading
label_desc: Use image node_id 2 for calling the ThreadedFuture obj's underlying member method code with example usage: obj.wait() and returns: self