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","."]
code: def __init__(self, target, args):
      self.buf = [None]
  
      thread = threading.Thread(
          target=_FuncWrapper(target),
          args=[self.buf] + list(args),
          daemon=True,
      )
      thread.start()
      self.thread = thread
  
file_path: dgl/python/dgl/storages/base.py
imports: import threading
label_desc: Use image node_id 1 to create a new ThreadedFuture object from inherited base classes: object with example: obj = ThreadedFuture(target, args)