@staticmethod<EOL><INDENT>def instance():<DEDENT>
if not hasattr(IOLoop, "<STR_LIT>"):<EOL><INDENT>with IOLoop._instance_lock:<EOL><INDENT>if not hasattr(IOLoop, "<STR_LIT>"):<EOL><INDENT>IOLoop._instance = IOLoop()<EOL><DEDENT><DEDENT><DEDENT>return IOLoop._instance<EOL>
Returns a global `IOLoop` instance.

        Most applications have a single, global `IOLoop` running on the
        main thread.  Use this method to get this instance from
        another thread.  To get the current thread's `IOLoop`, use `current()`.