def process_chain(callbacks, input, *a, **kw):
    d = defer.Deferred()
    for x in callbacks:
        d.addCallback(x, *a, **kw)
    d.callback(input)
    return d
Return a Deferred built by chaining the given callbacks
dataset/ETHPy150Open wcong/ants/ants/utils/defer.py/process_chain