Skip to content

Instantly share code, notes, and snippets.

@eklitzke
Created June 29, 2011 07:34
Show Gist options
  • Select an option

  • Save eklitzke/1053328 to your computer and use it in GitHub Desktop.

Select an option

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