Feature #10052
Add parameter non_block (defaults to false) on SizedQueue#push
Status:
Closed
Priority:
Normal
Assignee:
-
Target version:
-
Description
The implementations of Queue and SizedQueue have a method pop, where a parameter non_block would make the call raise a ThreadError if the queue is empty. Since popping of an empty queue is comparable with pushing to a full SizedQueue, I guess it would be nice to have an optional second parameter to make SizedQueue#push optional non-blocking too.
Files