B ¿öY[ã@sDdZddlmZddlZddlmZddlmZGdd„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)Ú AsyncWorkercs6eZdZdZd ‡fdd„ Z‡fdd„Zdd„Z‡ZS) Ú AsyncClientzI This client uses a single background thread to dispatch errors. Ncs.t dt¡|ptƒ|_tt|ƒj||ŽdS)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 stt|ƒjf|ŽdS)N)r rÚsend)r r)rrrÚ send_syncszAsyncClient.send_synccKs|jj|jf|ŽdS)N)r Úqueuer)r rrrrrszAsyncClient.send)N)Ú__name__Ú __module__Ú __qualname__Ú__doc__r rrÚ __classcell__rr)rrrs r) rÚ __future__rrZ raven.baserZraven.transport.threadedrrrrrrÚs