'Turn C{result} into the kind of result appropriate to C{self.mode}.'

def _constructSuccess(self, result):

    if (self.mode is Execution.SYNCHRONOUS):
        return result
    elif (self.mode is Execution.SYNCHRONOUS_DEFERRED):
        return succeed(result)
    else:
        d = self.ready.subscribe()
        d.addCallback((lambda ignored: result))
        return d
