def succeed(result):
    d = Deferred()
    d.callback(result)
    return d
Return a L{Deferred} that has already had C{.callback(result)} called.
dataset/ETHPy150Open twisted/twisted/twisted/internet/defer.py/succeed