|
Server : Apache System : Linux cvar2.toservers.com 3.10.0-962.3.2.lve1.5.73.el7.x86_64 #1 SMP Wed Aug 24 21:31:23 UTC 2022 x86_64 User : njnconst ( 1116) PHP Version : 8.4.18 Disable Function : NONE Directory : /opt/alt/python37/lib/python3.7/site-packages/raven/contrib/__pycache__/ |
Upload File : |
B
��Y[ � @ sD d Z ddlmZ ddlZddlmZ ddlmZ G dd� de�ZdS )z�
raven.contrib.async
~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
� )�absolute_importN)�Client)�AsyncWorkerc s6 e Zd ZdZd � fdd� Z� fdd�Zdd� Z� ZS )
�AsyncClientzI
This client uses a single background thread to dispatch errors.
Nc s. t �dt� |pt� | _tt| �j||� d S )NzCAsyncClient is deprecated. Use the threaded+http transport instead.)�warnings�warn�DeprecationWarningr �worker�superr �__init__)�selfr �args�kwargs)� __class__� �D/opt/alt/python37/lib/python3.7/site-packages/raven/contrib/async.pyr s zAsyncClient.__init__c s t t| �jf |� d S )N)r
r �send)r r )r r r � send_sync s zAsyncClient.send_syncc K s | j j| jf|� d S )N)r Zqueuer )r r r r r r s zAsyncClient.send)N)�__name__�
__module__�__qualname__�__doc__r r r �
__classcell__r r )r r r s r ) r Z
__future__r r Z
raven.baser Zraven.transport.threadedr r r r r r �<module> s