§
    Çtºf¾  ã                   ó0   — d dl Z d dlmZ ed„ ¦   «         ZdS )é    N)Úcontextmanagerc              #   óx   K  — t           j        j        }| t           j        _        | V — |t           j        _        dS )aÆ  
    This is a context-manager that sets the txaio event-loop to the
    one supplied temporarily. It's up to you to ensure you pass an
    event_loop or a reactor instance depending upon asyncio/Twisted.

    Use like so:

    .. sourcecode:: python

        from twisted.internet import task
        with replace_loop(task.Clock()) as fake_reactor:
            f = txaio.call_later(5, foo)
            fake_reactor.advance(10)
            # ...etc
    N)ÚtxaioÚconfigÚloop)Únew_loopÚorigs     úM/var/www/surfInsights/venv3-11/lib/python3.11/site-packages/txaio/testutil.pyÚreplace_loopr      s7   è è € õ& Œ<Ô€DØ …E„LÔà
€N€N€Nð …E„LÔÐÐó    )r   Ú
contextlibr   r   © r   r
   ú<module>r      sG   ðð6 €€€Ø %Ð %Ð %Ð %Ð %Ð %ð ðð ñ „ðð ð r   