lib/celluloid/internals/signals.rb in celluloid-essentials-0.20.0.pre14 vs lib/celluloid/internals/signals.rb in celluloid-essentials-0.20.0.pre15
- old
+ new
@@ -6,10 +6,10 @@
@conditions = {}
end
# Wait for the given signal and return the associated value
def wait(name)
- raise "cannot wait for signals while exclusive" if Celluloid.exclusive?
+ fail "cannot wait for signals while exclusive" if Celluloid.exclusive?
@conditions[name] ||= Condition.new
@conditions[name].wait
end