U
    ‡Wjô  ã                   @   s   G d d„ dƒZ dS )c                   @   s    e Zd ZdZdd„ Zdd„ ZdS )ÚBaseMiddlewarez×
    Base class for implementing ASGI middleware.

    Note that subclasses of this are not self-safe; don't store state on
    the instance, as it serves multiple application instances. Instead, use
    scope.
    c                 C   s
   || _ dS )zH
        Middleware constructor - just takes inner application.
        N)Úinner)Úselfr   © r   ú^c:\users\psant\downloads\hotstarbackend\school\venv38\Lib\site-packages\channels/middleware.pyÚ__init__
   s    zBaseMiddleware.__init__c                 Ã   s   t |ƒ}|  |||¡I dH S )zg
        ASGI application; can insert things into the scope and run asynchronous
        code.
        N)Údictr   )r   ZscopeZreceiveÚsendr   r   r   Ú__call__   s    zBaseMiddleware.__call__N)Ú__name__Ú
__module__Ú__qualname__Ú__doc__r   r	   r   r   r   r   r      s   r   N)r   r   r   r   r   Ú<module>   ó    