Search code examples
python-2.7asynchronoustwistedreactor

Is there any possible way to handle stop reactor event in Twisted framework, python 2.7


I have to execute code, when twisted reactor stops. Is there any standart way to do this?


Solution

  • The correct way to do this is with reactor.addSystemEventTrigger. but you probably don't need to do it. Please be more specific in future questions.