<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def stop(self):
 """ Indicate no more results will get pushed into EventualResults, since the reactor has stopped. This should be called in the reactor thread. """

        self._stopped = True
        for result in self._results:
            result._set_result(Failure(ReactorStopped()))