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

Methods inherited from SystemEvent

handle, handler

Constructor Details

#initialize(task, value) ⇒ SignalConditionRequest


107
108
109
110
# File 'lib/celluloid/system_events.rb', line 107

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

Instance Attribute Details

#taskObject (readonly)

Returns the value of attribute task


111
112
113
# File 'lib/celluloid/system_events.rb', line 111

def task
  @task
end

#valueObject (readonly)

Returns the value of attribute value


111
112
113
# File 'lib/celluloid/system_events.rb', line 111

def value
  @value
end

Instance Method Details

#callObject


117
118
119
# File 'lib/celluloid/system_events.rb', line 117

def call
  @task.resume(@value)
end