Class: Celluloid::SignalConditionRequest
- Inherits:
-
SystemEvent
- Object
- SystemEvent
- Celluloid::SignalConditionRequest
- Defined in:
- lib/celluloid/system_events.rb
Overview
Signal a condition
Instance Attribute Summary collapse
-
#task ⇒ Object
readonly
Returns the value of attribute task.
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(task, value) ⇒ SignalConditionRequest
constructor
A new instance of SignalConditionRequest.
Methods inherited from SystemEvent
Constructor Details
#initialize(task, value) ⇒ SignalConditionRequest
Returns a new instance of SignalConditionRequest.
114 115 116 117 |
# File 'lib/celluloid/system_events.rb', line 114 def initialize(task, value) @task = task @value = value end |
Instance Attribute Details
#task ⇒ Object (readonly)
Returns the value of attribute task.
118 119 120 |
# File 'lib/celluloid/system_events.rb', line 118 def task @task end |
#value ⇒ Object (readonly)
Returns the value of attribute value.
118 119 120 |
# File 'lib/celluloid/system_events.rb', line 118 def value @value end |
Instance Method Details
#call ⇒ Object
122 123 124 |
# File 'lib/celluloid/system_events.rb', line 122 def call @task.resume(@value) end |