HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.104.1.lve.el8.x86_64 #1 SMP Tue Feb 10 20:07:30 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.29
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //usr/lib64/python3.6/site-packages/zmq/eventloop/__pycache__/ioloop.cpython-36.pyc
3

VS�_'�@s6dZddlmZmZmZddlZddlZyDddlZddlm	Z	ddlm
Z
ee
jd�sje
deedd	���Wn,e
k
r�d
dlm
Z
d
dlm	Z	YnXe
jZGdd�de�Zd
d�Zde_de
jkr�d
dlmZn e
jZxej�ek	r�ej�Zq�WGdd�de�ZeZdd�Zde
jk�r2d
dlmZmZmZdS)z�tornado IOLoop API with zmq compatibility

This module is deprecated in pyzmq 17.
To use zmq with tornado,
eventloop integration is no longer required
and tornado itself should be used.
�)�absolute_import�division�with_statementN)�gen_log)�ioloop�configurable_defaultzTornado too old: %s�version�unknown�cs2eZdZdZd	�fdd�	Zdd�Zdd�Z�ZS)
�DelayedCallbackz�Schedules the given callback to be called once.

    The callback is called once, after callback_time milliseconds.

    `start` must be called after the DelayedCallback is created.
    
    The timeout is calculated from when `start` is called.
    Ncs.tjdt�t|d�}tt|�j|||�dS)NzDDelayedCallback is deprecated.
        Use loop.add_timeout instead.g����MbP?)�warnings�warn�DeprecationWarning�max�superr�__init__)�self�callback�
callback_time�io_loop)�	__class__��/usr/lib64/python3.6/ioloop.pyr(s
zDelayedCallback.__init__cCs6d|_d|_tj�|jd|_|jj|j|j�dS)zStarts the timer.Tg@�@N)�_runningZ	_firstrun�timerZ
_next_timeoutrZadd_timeout�_run)rrrr�start/szDelayedCallback.startcCsD|js
dSd|_y|j�Wn"tk
r>tjddd�YnXdS)NFzError in delayed callbackT)�exc_info)rr�	Exceptionr�error)rrrrr6szDelayedCallback._run)N)�__name__�
__module__�__qualname__�__doc__rrr�
__classcell__rr)rrrsrcCs$tjr
dSdt_tjdtdd�dS)NTzlzmq.eventloop.ioloop is deprecated in pyzmq 17. pyzmq now works with default tornado and asyncio eventloops.�)�
stacklevel)�_deprecated�calledrr
rrrrrr'?s
r'Fz
.minitornado.)�	ZMQIOLoopcs8eZdZdZ�fdd�Zedd��Zedd��Z�ZS)r)z�DEPRECATED: No longer needed as of pyzmq-17

    PyZMQ tornado integration now works with the default :mod:`tornado.ioloop.IOLoop`.
    cst�tt|�j�S)N)r'rr)r)r�args�kwargs)rrrrXszZMQIOLoop.__init__cOs$tjj|�t�tjj||�}|S)aReturns 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()`.
        )r�IOLoop�	configurer'�instance)�clsr*r+�looprrrr.]s
zZMQIOLoop.instancecOs$tjj|�t�tjj||�}|S)u/Returns the current thread’s IOLoop.
        )rr,r-r'�current)r/r*r+r0rrrr1lszZMQIOLoop.current)	r r!r"r#r�classmethodr.r1r$rr)rrr)Rsr)cCst�tjjt�dS)zRDEPRECATED

    pyzmq 17 no longer needs any special integration for tornado.
    N)r'rr,r-r)rrrr�install|sr3)r)r3r,)r#Z
__future__rrrrrZtornadoZtornado.logrr�hasattrr,�ImportError�getattrZminitornadoZminitornado.logZPeriodicCallbackrr'r(r r)Z_IOLooprr3rrrr�<module>s4 
'