
    j                     V    d dl Z dgZde j        de j        ddfdZde j        ddfdZdS )	    Nrace_eventseventcancel_scopereturnc                 f   K   |                                   d {V  |                                 d S )N)waitcancel)r   r   s     _/workspace/show-city-briefing-agent/.venv/lib/python3.11/site-packages/websockets/trio/utils.pyjockeyr   
   s>      
**,,    eventsc                    K   | st          d          	 t          j                    4 d{V }| D ]#}|                    t          ||j                   $	 ddd          d{V  dS # 1 d{V swxY w Y   dS # t          $ rT}	 t          j                            |           n(# t          j        j	        $ r t          d          |w xY wY d}~dS d}~ww xY w)zj
    Wait for any of the given events to be set.

    Args:
        *events: The events to wait for.

    zno events providedNz8race_events should be canceled; please file a bug report)
ValueErrortrioopen_nursery
start_soonr   r   BaseExceptionGroup_util!raise_single_exception_from_groupMultipleExceptionErrorAssertionError)r   nurseryr   excs       r
   r   r      s       /-...
$&& 	H 	H 	H 	H 	H 	H 	H' H H""65'2FGGGGH	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H 	H    	J88====z0 	 	 	 J 	 >=====sL   A< 'A)A< )
A33A< 6A37A< <
CB'&C'%CCC)r   __all__EventCancelScoper   r    r   r
   <module>r      ss     /
 $2B t    
tz d      r   