From: Eric Hodel <drbrain@segment7.net>
To: ruby-core@ruby-lang.org
Subject: [ruby-core:38536] [Ruby 1.9 - Feature #4589] add Queue#each() method and include Enumerable
Date: Wed, 27 Jul 2011 08:34:47 +0900 [thread overview]
Message-ID: <redmine.journal-19744.20110727083447@ruby-lang.org> (raw)
In-Reply-To: redmine.issue-4589.20110420214926@ruby-lang.org
Issue #4589 has been updated by Eric Hodel.
There are no destructive methods in Enumerable.
Most times I use a Queue I am producing and consuming items at the same time so this would not be as useful for me since it works on a copy.
If I were to finish production of items or work with partial results this would be useful.
----------------------------------------
Feature #4589: add Queue#each() method and include Enumerable
http://redmine.ruby-lang.org/issues/4589
Author: Suraj Kurapati
Status: Open
Priority: Normal
Assignee:
Category: lib
Target version:
=begin
Please add a thread-safe each() method to the Queue and SizedQueue classes
which are provided by the "thread" standard library
Also mix-in the Enumerable module into those classes so we can use map/inject/etc.
Thanks for your consideration.
=end
--
http://redmine.ruby-lang.org
next prev parent reply other threads:[~2011-07-26 23:20 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-20 12:49 [ruby-core:35828] [Ruby 1.9 - Feature #4589][Open] add Queue#each() method and include Enumerable redmine
2011-04-27 4:06 ` [ruby-core:35920] [Ruby 1.9 - Feature #4589] " Charles Nutter
2011-04-28 21:52 ` [ruby-core:35941] " Eric Hodel
2011-07-26 18:21 ` [ruby-core:38528] " Suraj Kurapati
2011-07-26 23:34 ` Eric Hodel [this message]
2011-07-27 9:41 ` [ruby-core:38559] " Alex Young
2012-03-25 6:20 ` [ruby-core:43618] [ruby-trunk - Feature #4589][Assigned] " mame (Yusuke Endoh)
2012-10-29 23:44 ` [ruby-core:48561] [ruby-trunk - Feature #4589][Feedback] " ko1 (Koichi Sasada)
2012-10-30 2:36 ` [ruby-core:48584] " Aaron Patterson
2017-01-31 9:10 ` [ruby-core:79348] [Ruby trunk Feature#4589][Closed] " ko1
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.ruby-lang.org/en/community/mailing-lists/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=redmine.journal-19744.20110727083447@ruby-lang.org \
--to=ruby-core@ruby-lang.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).