'@param completionState: a L{TaskFinished} exception or a subclass
thereof, indicating what exception should be raised when subsequent
operations are performed.
@param deferredResult: the result to fire all the deferreds with.'

def _completeWith(self, completionState, deferredResult):

    self._completionState = completionState
    self._completionResult = deferredResult
    if (not self._pauseCount):
        self._cooperator._removeTask(self)
    for d in self._deferreds:
        d.callback(deferredResult)
