コード例 #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
ファイル: utils.py プロジェクト: Addalin/cameranetwork
 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
ファイル: utils.py プロジェクト: Addalin/cameranetwork
    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
ファイル: ioloop.py プロジェクト: drastorguev/pythondojo
 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
ファイル: ioloop.py プロジェクト: drastorguev/pythondojo
 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()