Module: Droonga::Deferrable
- Included in:
- Command::DroongaEngine::ServiceRunner, Engine, EngineState, Farm, ProcessSupervisor, Serf::Agent, Slice, Supervisor, Supervisor::WorkerRunner
- Defined in:
- lib/droonga/deferrable.rb
Instance Attribute Summary collapse
-
#on_failure ⇒ Object
writeonly
Sets the attribute on_failure.
-
#on_ready ⇒ Object
writeonly
Sets the attribute on_ready.
Instance Method Summary collapse
Instance Attribute Details
#on_failure=(value) ⇒ Object
Sets the attribute on_failure
18 19 20 |
# File 'lib/droonga/deferrable.rb', line 18 def on_failure=(value) @on_failure = value end |
#on_ready=(value) ⇒ Object
Sets the attribute on_ready
18 19 20 |
# File 'lib/droonga/deferrable.rb', line 18 def on_ready=(value) @on_ready = value end |
Instance Method Details
#wait_until_ready(target) ⇒ Object
20 21 22 23 24 |
# File 'lib/droonga/deferrable.rb', line 20 def wait_until_ready(target) target.on_ready = lambda do on_ready end end |