예제 #1
0
파일: ioloop.py 프로젝트: Lothiraldan/pyzmq
def install():
    """DEPRECATED
    
    pyzmq 17 no longer needs any special integration for tornado.
    """
    _deprecated()
    PollIOLoop.configure(ZMQIOLoop)
예제 #2
0
파일: ioloop.py 프로젝트: hongjie7202/pyzmq
def install():
    """DEPRECATED
    
    pyzmq 17 no longer needs any special integration for tornado.
    """
    _deprecated()
    PollIOLoop.configure(ZMQIOLoop)
예제 #3
0
파일: ioloop.py 프로젝트: 326029212/pyzmq
 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)
예제 #4
0
파일: ioloop.py 프로젝트: twosixlabs/pyzmq
 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)
예제 #5
0
 def current(*args, **kwargs):
     """Returns the current threads IOLoop.
     """
     #
     # install PuritanicalIOLoop as the active IOLoop implementation
     #
     PollIOLoop.configure(PuritanicalIOLoop)
     return PollIOLoop.current(*args, **kwargs)
예제 #6
0
파일: ioloop.py 프로젝트: hongjie7202/pyzmq
 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
예제 #7
0
파일: ioloop.py 프로젝트: Lothiraldan/pyzmq
 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
예제 #8
0
파일: ioloop.py 프로젝트: 326029212/pyzmq
 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)
예제 #9
0
파일: ioloop.py 프로젝트: twosixlabs/pyzmq
 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)
예제 #10
0
    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)
예제 #11
0
 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
예제 #12
0
 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
예제 #13
0
 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
예제 #14
0
 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
예제 #15
0
파일: support.py 프로젝트: aubustou/circus
 def instance():
     PollIOLoop.configure(DebugLoop)
     return PollIOLoop.instance()
예제 #16
0
 def instance():
     PollIOLoop.configure(DebugLoop)
     return PollIOLoop.instance()