Class: Faultline::AsyncSender

Inherits:
Airbrake::AsyncSender
  • Object
show all
Defined in:
lib/faultline/async_sender.rb

Instance Method Summary collapse

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