parameters: (self, done: Future)
docstring: Called set the returned future's state that of the future
          we yielded, and set the current future for the iterator.
docstring_summary: Called set the returned future's state that of the future
          we yielded, and set the current future for the iterator.
docstring_tokens: Called set the returned future s state that of the future we yielded and set the current future for the iterator .
function: def _return_result(self, done: Future) -> None:
          """Called set the returned future's state that of the future
          we yielded, and set the current future for the iterator.
          """
          if self._running_future is None:
              raise Exception("no future is running")
          chain_future(done, self._running_future)
  
          self.current_future = done
          self.current_index = self._unfinished.pop(done)
function_tokens: def _return_result ( self , done : Future ) -> None : if self . _running_future is None : raise Exception ( "no future is running" ) chain_future ( done , self . _running_future ) self . current_future = done self . current_index = self . _unfinished . pop ( done )