lib/ruote/log/wait_logger.rb in ruote-2.1.9 vs lib/ruote/log/wait_logger.rb in ruote-2.1.10

- old
+ new

@@ -53,14 +53,16 @@ return unless @waiting check_msg(msg) end - def wait_for (interest) + def wait_for (interests) - @waiting = [ Thread.current, interest ] + @waiting = [ Thread.current, interests ] Thread.stop + + # and when this thread gets woken up, go on and return __result__ Thread.current['__result__'] end end end