'Initializes the future. Should not be called by clients.'

def __init__(self):

    self._condition = threading.Condition()
    self._state = PENDING
    self._result = None
    self._exception = None
    self._waiters = []
    self._done_callbacks = []
