source:
ralphm-patches/disco_simplify_gatherResults.patch
@
54:03ec57713c90
Last change on this file since 54:03ec57713c90 was 43:db824c2e8652, checked in by Ralph Meijer <ralphm@…>, 12 years ago | |
---|---|
File size: 1.1 KB |
-
wokkel/disco.py
diff -r 101119987680 -r 0d666be7ca0f wokkel/disco.py
a b 495 495 """ 496 496 Gather results from a list of deferreds. 497 497 498 Similar to L{defer.gatherResults}, but flattens the returned results, 499 consumes errors after the first one and fires the errback of the 500 returned deferred with the failure of the first deferred that fires its 501 errback. 498 Similar to L{defer.gatherResults}, but flattens the returned results. 502 499 503 500 @param deferredList: List of deferreds for which the results should be 504 501 gathered. … … 512 509 results.extend(value) 513 510 return results 514 511 515 def eb(failure):516 failure.trap(defer.FirstError)517 return failure.value.subFailure518 519 512 d = defer.DeferredList(deferredList, fireOnOneErrback=1, 520 513 consumeErrors=1) 521 d.addCallback s(cb, eb)514 d.addCallback(cb) 522 515 return d 523 516 524 517
Note: See TracBrowser
for help on using the repository browser.