Class: David::GarbageCollector

Inherits:
Object
  • Object
show all
Includes:
Actor
Defined in:
lib/david/garbage_collector.rb

Instance Method Summary collapse

Methods included from Actor

included

Constructor Details

#initialize(options = {}) ⇒ GarbageCollector

Returns a new instance of GarbageCollector.


5
6
7
8
9
10
11
12
# File 'lib/david/garbage_collector.rb', line 5

def initialize(options = {})
  @tick_interval = options[:tick_interval] || 10
  @timeout = options[:timeout] || 5

  log.debug('GarbageCollector initialized')

  async.run
end