File: //opt/alt/python27/lib/python2.7/site-packages/raven/contrib/async.pyo
�
��Yc           @@  s\   d  Z  d d l m Z d d l Z d d l m Z d d l m Z d e f d �  �  YZ d S(   s�   
raven.contrib.async
~~~~~~~~~~~~~~~~~~~
:copyright: (c) 2010-2012 by the Sentry Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
i    (   t   absolute_importN(   t   Client(   t   AsyncWorkert   AsyncClientc           B@  s,   e  Z d  Z d d � Z d �  Z d �  Z RS(   sI   
    This client uses a single background thread to dispatch errors.
    c         O@  s?   t  j d t � | p t �  |  _ t t |  � j | | �  d  S(   NsC   AsyncClient is deprecated. Use the threaded+http transport instead.(   t   warningst   warnt   DeprecationWarningR   t   workert   superR   t   __init__(   t   selfR   t   argst   kwargs(    (    sD   /opt/alt/python27/lib/python2.7/site-packages/raven/contrib/async.pyR	      s    c         K@  s   t  t |  � j | �  d  S(   N(   R   R   t   send(   R
   R   (    (    sD   /opt/alt/python27/lib/python2.7/site-packages/raven/contrib/async.pyt	   send_sync   s    c         K@  s   |  j  j |  j | � d  S(   N(   R   t   queueR   (   R
   R   (    (    sD   /opt/alt/python27/lib/python2.7/site-packages/raven/contrib/async.pyR
      s    N(   t   __name__t
   __module__t   __doc__t   NoneR	   R   R
   (    (    (    sD   /opt/alt/python27/lib/python2.7/site-packages/raven/contrib/async.pyR      s   	(	   R   t
   __future__R    R   t
   raven.baseR   t   raven.transport.threadedR   R   (    (    (    sD   /opt/alt/python27/lib/python2.7/site-packages/raven/contrib/async.pyt   <module>   s