(callbacks: Iterable[Callable], input, *a, **kw)
return d
Return a Deferred built by chaining the given callbacks
Return a Deferred built by chaining the given callbacks
Return a Deferred built by chaining the given callbacks
def process_chain(callbacks: Iterable[Callable], input, *a, **kw) -> Deferred:
    """Return a Deferred built by chaining the given callbacks"""
    d = Deferred()
    for x in callbacks:
        d.addCallback(x, *a, **kw)
    d.callback(input)
    return d
def process_chain ( callbacks : Iterable [ Callable ] , input , * a , * * kw ) -> Deferred : d = Deferred ( ) for x in callbacks : d . addCallback ( x , * a , * * kw ) d . callback ( input ) return d