Module: Sidekiq::Actor::InstanceMethods
- Defined in:
- lib/sidekiq/actor.rb
Instance Method Summary collapse
- #after(interval) ⇒ Object
- #alive? ⇒ Boolean
- #current_actor ⇒ Object
- #defer ⇒ Object
- #terminate ⇒ Object
Instance Method Details
#after(interval) ⇒ Object
16 17 |
# File 'lib/sidekiq/actor.rb', line 16 def after(interval) end |
#alive? ⇒ Boolean
18 19 20 21 |
# File 'lib/sidekiq/actor.rb', line 18 def alive? @dead = false unless defined?(@dead) !@dead end |
#current_actor ⇒ Object
13 14 15 |
# File 'lib/sidekiq/actor.rb', line 13 def current_actor self end |
#defer ⇒ Object
25 26 27 |
# File 'lib/sidekiq/actor.rb', line 25 def defer yield end |
#terminate ⇒ Object
22 23 24 |
# File 'lib/sidekiq/actor.rb', line 22 def terminate @dead = true end |