[#69084] [Ruby trunk - Feature #11124] [Open] [PATCH] lib/*: use monotonic clock for timeouts — normalperson@...
Issue #11124 has been reported by Eric Wong.
5 messages
2015/05/06
[#69138] [Ruby trunk - Feature #11136] [PATCH] webrick: avoid fcntl module — nobu@...
Issue #11136 has been updated by Nobuyoshi Nakada.
3 messages
2015/05/12
[#69160] [Ruby trunk - Feature #11146] [PATCH] variable.c: initialize generic_iv_tbl at start — nobu@...
Issue #11146 has been updated by Nobuyoshi Nakada.
4 messages
2015/05/13
[#69175] Re: [Ruby trunk - Feature #11146] [PATCH] variable.c: initialize generic_iv_tbl at start
— Eric Wong <normalperson@...>
2015/05/13
nobu@ruby-lang.org wrote:
[ruby-core:69081] [Ruby trunk - Feature #11122] [Open] exception-free non-blocking Queue/SizedQueue operations
From:
normalperson@...
Date:
2015-05-06 20:53:10 UTC
List:
ruby-core #69081
Issue #11122 has been reported by Eric Wong. ---------------------------------------- Feature #11122: exception-free non-blocking Queue/SizedQueue operations https://bugs.ruby-lang.org/issues/11122 * Author: Eric Wong * Status: Open * Priority: Normal * Assignee: Yukihiro Matsumoto ---------------------------------------- I would like to reduce exceptions for non-blocking operations on Queue/SizedQueue in the same way we are reducing exceptions for non-blocking I/O with *_nonblock(..., exception: false) methods. However, I'm unclear what the API would be, since queues return Ruby objects instead of String buffers or number of bytes written, so any special object/symbol we would return could conflict with existing applications. Perhaps something like: queue.pop(nonblock: :WAIT) queue.push(obj, nonblock: :WAIT) Which would allow user to specify which object to raise when a queue is empty or full (similar to Timeout.timeout allowing specific exception to raise). -- https://bugs.ruby-lang.org/