Created
December 8, 2016 04:21
-
-
Save wynemo/db2fe2c9c01ff0c57f83a9b2fa3b7053 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| from twisted.internet import reactor, defer | |
| from twisted.python import log | |
| log.startLogging(sys.stdout) | |
| @defer.inlineCallbacks | |
| def foo(): | |
| reactor.stop() | |
| reactor.callWhenRunning(foo) | |
| reactor.run() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment