Module: Sidekiq::Actor::InstanceMethods

Defined in:
lib/sidekiq/actor.rb

Instance Method Summary collapse

Instance Method Details

#after(interval) ⇒ Object


16
17
# File 'lib/sidekiq/actor.rb', line 16

def after(interval)
end

#alive?Boolean

Returns:

  • (Boolean)

18
19
20
21
# File 'lib/sidekiq/actor.rb', line 18

def alive?
  @dead = false unless defined?(@dead)
  !@dead
end

#current_actorObject


13
14
15
# File 'lib/sidekiq/actor.rb', line 13

def current_actor
  self
end

#deferObject


25
26
27
# File 'lib/sidekiq/actor.rb', line 25

def defer
  yield
end

#terminateObject


22
23
24
# File 'lib/sidekiq/actor.rb', line 22

def terminate
  @dead = true
end