Stop twisted reactor on a condition

Viewed 18604

Is there a way to stop the twisted reactor when a certain condition is reached. For example, if a variable is set to certain value, then the reactor should stop?

2 Answers
Related