Class: Celluloid::SignalConditionRequest

Inherits:
SystemEvent show all
Defined in:
lib/celluloid/system_events.rb

Overview

Signal a condition

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(task, value) ⇒ SignalConditionRequest

Returns a new instance of SignalConditionRequest.


57
58
59
# File 'lib/celluloid/system_events.rb', line 57

def initialize(task, value)
  @task, @value = task, value
end

Instance Attribute Details

#taskObject (readonly)

Returns the value of attribute task


60
61
62
# File 'lib/celluloid/system_events.rb', line 60

def task
  @task
end

#valueObject (readonly)

Returns the value of attribute value


60
61
62
# File 'lib/celluloid/system_events.rb', line 60

def value
  @value
end

Instance Method Details

#callObject


62
63
64
# File 'lib/celluloid/system_events.rb', line 62

def call
  @task.resume(@value)
end