stop a twisted reactor after a gatherResults has finished
问题 new to twisted and just trying some deferred stuff out. I have the following code that makes up a list of 100 deferred calls - each waiting a random time and returning a value. That list the prints the results and finally terminates the reactor. However, I'm pretty sure the way I'm stopping the reactor is probably... not great. __author__ = 'Charlie' from twisted.internet import defer, reactor import random def getDummyData(x): """returns a deferred object that will have a value in some