def install(): """DEPRECATED pyzmq 17 no longer needs any special integration for tornado. """ _deprecated() PollIOLoop.configure(ZMQIOLoop)
def install(): """DEPRECATED pyzmq 17 no longer needs any special integration for tornado. """ _deprecated() PollIOLoop.configure(ZMQIOLoop)
def current(*args, **kwargs): """Returns the current thread’s IOLoop. """ # install ZMQIOLoop as the active IOLoop implementation # when using tornado 3 if tornado_version >= (3,): PollIOLoop.configure(ZMQIOLoop) return PollIOLoop.current(*args, **kwargs)
def current(*args, **kwargs): """Returns the current thread’s IOLoop. """ # install ZMQIOLoop as the active IOLoop implementation # when using tornado 3 if tornado_version >= (3, ): PollIOLoop.configure(ZMQIOLoop) return PollIOLoop.current(*args, **kwargs)
def current(*args, **kwargs): """Returns the current threads IOLoop. """ # # install PuritanicalIOLoop as the active IOLoop implementation # PollIOLoop.configure(PuritanicalIOLoop) return PollIOLoop.current(*args, **kwargs)
def current(cls, *args, **kwargs): """Returns the current thread’s IOLoop. """ # install ZMQIOLoop as the active IOLoop implementation # when using tornado 3 PollIOLoop.configure(cls) _deprecated() loop = PollIOLoop.current(*args, **kwargs) return loop
def current(cls, *args, **kwargs): """Returns the current thread’s IOLoop. """ # install ZMQIOLoop as the active IOLoop implementation # when using tornado 3 PollIOLoop.configure(cls) _deprecated() loop = PollIOLoop.current(*args, **kwargs) return loop
def instance(*args, **kwargs): """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()`. """ # install ZMQIOLoop as the active IOLoop implementation # when using tornado 3 if tornado_version >= (3,): PollIOLoop.configure(ZMQIOLoop) return PollIOLoop.instance(*args, **kwargs)
def instance(*args, **kwargs): """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()`. """ # install ZMQIOLoop as the active IOLoop implementation # when using tornado 3 if tornado_version >= (3, ): PollIOLoop.configure(ZMQIOLoop) return PollIOLoop.instance(*args, **kwargs)
def instance(*args, **kwargs): """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()`. """ # # install PuritanicalIOLoop as the active IOLoop implementation # PollIOLoop.configure(PuritanicalIOLoop) return PollIOLoop.instance(*args, **kwargs)
def current(cls, *args, **kwargs): """Returns the current thread’s IOLoop. """ # install ZMQIOLoop as the active IOLoop implementation # when using tornado 3 if tornado_version >= (3,): PollIOLoop.configure(cls) loop = PollIOLoop.current(*args, **kwargs) if not isinstance(loop, cls): warnings.warn("IOLoop.current expected instance of %r, got %r" % (cls, loop), RuntimeWarning, stacklevel=2, ) return loop
def current(cls, *args, **kwargs): """Returns the current thread’s IOLoop. """ # install ZMQIOLoop as the active IOLoop implementation # when using tornado 3 if tornado_version >= (3, ): PollIOLoop.configure(cls) loop = PollIOLoop.current(*args, **kwargs) if not isinstance(loop, cls): warnings.warn( "IOLoop.current expected instance of %r, got %r" % (cls, loop), RuntimeWarning, stacklevel=2, ) return loop
def instance(cls, *args, **kwargs): """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()`. """ # install ZMQIOLoop as the active IOLoop implementation # when using tornado 3 if tornado_version >= (3,): PollIOLoop.configure(cls) loop = PollIOLoop.instance(*args, **kwargs) if not isinstance(loop, cls): warnings.warn("IOLoop.current expected instance of %r, got %r" % (cls, loop), RuntimeWarning, stacklevel=2, ) return loop
def instance(cls, *args, **kwargs): """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()`. """ # install ZMQIOLoop as the active IOLoop implementation # when using tornado 3 if tornado_version >= (3, ): PollIOLoop.configure(cls) loop = PollIOLoop.instance(*args, **kwargs) if not isinstance(loop, cls): warnings.warn( "IOLoop.current expected instance of %r, got %r" % (cls, loop), RuntimeWarning, stacklevel=2, ) return loop
def instance(): PollIOLoop.configure(DebugLoop) return PollIOLoop.instance()
def instance(): PollIOLoop.configure(DebugLoop) return PollIOLoop.instance()