def _StartIOLoop(callback):
 io_loop = ioloop.IOLoop.current()
 try:
  httpclient.AsyncHTTPClient.configure('tornado.curl_httpclient.CurlAsyncHTTPClient')
  httpclient.AsyncHTTPClient(io_loop=io_loop, max_clients=100)
 except:
  logging.exception('failed to configure tornado AsyncHTTPClient to use pycurl')
 io_loop.add_callback(callback)
 io_loop.start()

def _StartIOLoop ( callback ) : io_loop = ioloop . IOLoop . current ( ) try : httpclient . AsyncHTTPClient . configure ( 'tornado.curl_httpclient.CurlAsyncHTTPClient' ) httpclient . AsyncHTTPClient ( io_loop = io_loop , max_clients = 100 ) except : logging . exception ( 'failed to configure tornado AsyncHTTPClient to use pycurl' ) io_loop . add_callback ( callback ) io_loop . start ( )
creates a new ioloop object .