From: "rklemme (Robert Klemme)" Date: 2012-09-30T00:21:19+09:00 Subject: [ruby-core:47736] [ruby-trunk - Bug #7086] ConditionVariable#wait has meaningless return value Issue #7086 has been updated by rklemme (Robert Klemme). rklemme (Robert Klemme) wrote: > There's another issue exhibited through the script but I will create a separate ticket for this. That is bug #7087 now. ---------------------------------------- Bug #7086: ConditionVariable#wait has meaningless return value https://bugs.ruby-lang.org/issues/7086#change-29791 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/