class ActiveConcurrency::Threads::Worker
Public Class Methods
new(name: nil)
click to toggle source
Calls superclass method
ActiveConcurrency::Base::Worker::new
# File lib/active_concurrency/threads/worker.rb, line 7 def initialize(name: nil) super(name: name) @thread = Thread.new(@name) { perform } end
Public Instance Methods
exit!()
click to toggle source
# File lib/active_concurrency/threads/worker.rb, line 12 def exit! @thread.exit end
join()
click to toggle source
# File lib/active_concurrency/threads/worker.rb, line 16 def join @thread.join end
status()
click to toggle source
# File lib/active_concurrency/threads/worker.rb, line 20 def status @thread.status end