Created
June 29, 2011 07:34
-
-
Save eklitzke/1053328 to your computer and use it in GitHub Desktop.
add_callback example
This file contains 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 tornado.ioloop | |
loop = tornado.ioloop.IOLoop.instance() | |
def callback(*args): | |
loop.add_callback(callback) | |
callback() | |
loop.start() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment