class_docstr: This class is *almost* compatible with concurrent.futures.Future.
  
  Differences:
  
  - This class is not thread-safe.
  
  - result() and exception() do not take a timeout argument and
    raise an exception when the future isn't done yet.
  
  - Callbacks registered with add_done_callback() are always called
    via the event loop's call_soon().
  
  - This class is not compatible with the wait() and as_completed()
    methods in the concurrent.futures package.
  
  (In Python 3.4 or later we may be able to unify the implementations.)
class_docstr_tok: ["This","class","is","*","almost","*","compatible","with","concurrent.futures.Future",".","Differences",":","-","This","class","is","not","thread-safe",".","-","result","(",")","and","exception","(",")","do","not","take","a","timeout","argument","and","raise","an","exception","when","the","future","is","n't","done","yet",".","-","Callbacks","registered","with","add_done_callback","(",")","are","always","called","via","the","event","loop","'s","call_soon","(",")",".","-","This","class","is","not","compatible","with","the","wait","(",")","and","as_completed","(",")","methods","in","the","concurrent.futures","package",".","(","In","Python","3.4","or","later","we","may","be","able","to","unify","the","implementations",".",")"]
docstr: Return the event loop the Future is bound to.
docstr_tok: ["Return","the","event","loop","the","Future","is","bound","to","."]
code: def get_loop(self):
      """Return the event loop the Future is bound to."""
      loop = self._loop
      if loop is None:
          raise RuntimeError("Future object is not initialized.")
      return loop
  
imports: import concurrent.futures
  import contextvars
  import logging
  import sys
  from types import GenericAlias
  from .None import base_futures
  from .None import events
  from .None import exceptions
  from .None import format_helpers
label_desc: Use image node_id 6 for calling the Future obj's underlying member method code with example usage: obj.get_loop() and returns: loop