Class: Faultline::AsyncSender
- Inherits:
-
Airbrake::AsyncSender
- Object
- Airbrake::AsyncSender
- Faultline::AsyncSender
- Defined in:
- lib/faultline/async_sender.rb
Instance Method Summary collapse
-
#initialize(config) ⇒ AsyncSender
constructor
A new instance of AsyncSender.
Constructor Details
#initialize(config) ⇒ AsyncSender
Returns a new instance of AsyncSender.
3 4 5 6 7 8 9 10 11 |
# File 'lib/faultline/async_sender.rb', line 3 def initialize(config) @config = config @unsent = SizedQueue.new(config.queue_size) @sender = SyncSender.new(config) @closed = false @workers = ThreadGroup.new @mutex = Mutex.new @pid = nil end |