Jasper St. Pierre wrote: […] > * Slide 124: As I understand, DeferredList is a bit dated, and you > should use gatherResults instead -- it returns a deferred, and it > hands you a list of all the results in the callback. The dialogue is > also a bit repetitive (a list of Deferreds! I hand it a list of > Deferreds!) and the next slide has a typo header change.
DeferredList isn't dated exactly. You should definitely prefer gatherResults if it suits your situation, because it is a simpler and easier API. But DeferredList is more capable, it provides more functionality (at the cost of being more complex to used). gatherResults is implemented using DeferredList. If it really were something to avoid entirely in favour of a newer replacement we would have deprecated it by now :) (IIRC there are actually one or two tickets about replacing it with something better, but until that happens, it's certainly reasonable to use.) -Andrew. _______________________________________________ Twisted-Python mailing list Twisted-Python@twistedmatrix.com http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python