Triggering events in twisted from another thread
问题 I have an application which, for convenience (I am reusing existing code) has been split into two different threads: one thread running the twisted reactor another thread running an interactive menu One of the things I want to perform from the interactive menu is to interact with the reactor. Once the user gives a specific command, I want to trigger a twisted event. Here is a very simplified version of my code: from twisted.spread import pb from twisted.internet import reactor import