How do I add two integers together with Twisted?
问题 I have two integers in my program; let's call them " a " and " b ". I would like to add them together and get another integer as a result. These are regular Python int objects. I'm wondering; how do I add them together with Twisted? Is there a special performAsynchronousAddition function somewhere? Do I need a Deferred ? What about the reactor? Is the reactor involved? 回答1: OK, to be clear. Twisted doesn't do anything about cpu bound tasks and for good reason. there's no way to make a compute