lib/celluloid/system_events.rb in celluloid-0.12.4 vs lib/celluloid/system_events.rb in celluloid-0.13.0.pre

- old
+ new

@@ -49,6 +49,17 @@ end end # Request for an actor to terminate class TerminationRequest < SystemEvent; end + + # Signal a condition + class SignalConditionRequest < SystemEvent + def initialize(task, value) + @task, @value = task, value + end + + def call + @task.resume(@value) + end + end end