HEX
Server: Apache
System: Linux server2.voipitup.com.au 4.18.0-553.109.1.lve.el8.x86_64 #1 SMP Thu Mar 5 20:23:46 UTC 2026 x86_64
User: posscale (1027)
PHP: 8.2.30
Disabled: exec,passthru,shell_exec,system
Upload Files
File: //opt/saltstack/salt/lib/python3.10/site-packages/zmq/eventloop/__pycache__/ioloop.cpython-310.pyc
o

�N�g��@s>UdZddlZddlZddlmZz"ddlZddlmZddlmZe	ej
d�s2edeedd	���WneyHd
dl
mZd
dlmZYnwejZGdd�de�Zd
d�Zde_eed<dejvrkd
dlmZnej
Ze��eur~e��Ze��eustGdd�de�ZeZ
dd�Zdejvr�d
dlm
Z
mZmZdSdS)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.
�N)�Any)�ioloop)�gen_log�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*t�dt�t|d�}t��|||�dS)NzDDelayedCallback is deprecated.
        Use loop.add_timeout instead.g����MbP?)�warnings�warn�DeprecationWarning�max�super�__init__)�self�callback�
callback_time�io_loop��	__class__��H/opt/saltstack/salt/lib/python3.10/site-packages/zmq/eventloop/ioloop.pyr+s�
zDelayedCallback.__init__cCs6d|_d|_t��|jd|_|j�|j|j�dS)zStarts the timer.Tg@�@N)�_runningZ	_firstrun�timerZ
_next_timeoutrZadd_timeout�_run�rrrr�start5szDelayedCallback.startcCsB|jsdSd|_z|��WdSty tjddd�YdSw)NFzError in delayed callbackT)�exc_info)rr�	Exceptionr�errorrrrrr<s�zDelayedCallback._run�N)�__name__�
__module__�__qualname__�__doc__rrr�
__classcell__rrrrr	!s
	
r	cCs$tjrdSdt_tjdtdd�dS)NTzlzmq.eventloop.ioloop is deprecated in pyzmq 17. pyzmq now works with default tornado and asyncio eventloops.�)�
stacklevel)�_deprecated�calledr
rrrrrrr(Fs
�r(F�_IOLoopz
.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�t���Sr )r(rr)r�args�kwargsrrrrds
zZMQIOLoop.__init__cO�(tj�|�t�tjj|i|��}|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-Zlooprrrr1is
zZMQIOLoop.instancecOr.)u&Returns the current thread’s IOLoop.)rr/r0r(�currentr2rrrr4xszZMQIOLoop.current)	r!r"r#r$r�classmethodr1r4r%rrrrr+^s
r+cCst�tj�t�dS)zRDEPRECATED

    pyzmq 17 no longer needs any special integration for tornado.
    N)r(rr/r0r+rrrr�install�sr6)r/r+r6)r$rr
�typingrZtornadorZtornado.logr�hasattrr/�ImportError�getattrZminitornadoZminitornado.logZPeriodicCallbackr	r(r)�__annotations__r!r+r*rr6rrrr�<module>sD���%
�&

�