Skip to content

Instantly share code, notes, and snippets.

@eklitzke
Created June 29, 2011 07:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eklitzke/1053328 to your computer and use it in GitHub Desktop.
Save eklitzke/1053328 to your computer and use it in GitHub Desktop.
add_callback example
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