Issue #7086 has been reported by rklemme (Robert Klemme).

----------------------------------------
Bug #7086: ConditionVariable#wait has meaningless return value
https://bugs.ruby-lang.org/issues/7086

Author: rklemme (Robert Klemme)
Status: Open
Priority: Normal
Assignee: 
Category: 
Target version: 
ruby -v: ruby 1.9.3p194 (2012-04-20) [i686-linux]


I consider this an API bug: when invoked with a timeout value the caller cannot distinguish from the return value whether the condition has been signaled or the time has run out.  Consider how Java does it: http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/locks/Condition.html#await(long,%20java.util.concurrent.TimeUnit) and http://docs.oracle.com/javase/7/docs/api/java/util/concurrent/locks/Condition.html#awaitUntil(java.util.Date)

There's another issue exhibited through the script but I will create a separate ticket for this.


-- 
http://bugs.ruby-lang.org/