[concurrency-interest] BlockingQueue or Queue / peek()
stanimir at riflexo.com
Thu Feb 2 16:23:22 EST 2012
I don't quite see the usefulness of the method.
As it's concurrent, by the time peek returns the element might not be in the
What kind of a use case do you fancy?
> On 02/02/2012 09:41 PM, Yuval Shavit wrote:
>> I may be missing something in your question, but it seems to me that
>> BlockingQueue does contain a method similar to the method you're asking
>> for. In fact, it's exactly what you're looking for. Same name, same
>> same output, same exception.
> E peek(long, TimeUnit)?
> Concurrency-interest mailing list
> Concurrency-interest at cs.oswego.edu
View this message in context: http://old.nabble.com/BlockingQueue-or-Queue---peek%28%29-tp33252294p33253261.html
Sent from the JSR166 Concurrency mailing list archive at Nabble.com.
More information about the Concurrency-interest