Ë
    ¯¿™h¾  ã                   ó(   — d dl Z d dlmZ ed„ «       Zy)é    N)Úcontextmanagerc              #   óœ   K  — t         j                  j                  }| t         j                  _        | –— |t         j                  _        y­w)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     úJ/var/www/Befach/backend/env/lib/python3.12/site-packages/txaio/testutil.pyÚreplace_loopr      s6   è ø€ ô& <‰<×Ñ€DØ „E‡LLÔà
‚Nð „E‡LLÕùs   ‚A
A)r   Ú
contextlibr   r   © ó    r
   ú<module>r      s!   ðó6 Ý %ð ñó ñr   