D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Thread
/
Queue
/
Filename :
new-c.ri
back
Copy
U:RDoc::AnyMethod[iI"new:ETI"Thread::Queue::new;TT:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"TCreates a new queue instance, optionally using the contents of an +enumerable+ ;TI"for its initial state.;To:RDoc::Markup::BlankLine o; ; [I" Example:;T@o:RDoc::Markup::Verbatim; [I"q = Thread::Queue.new ;TI"-#=> #<Thread::Queue:0x00007ff7501110d0> ;TI"q.empty? ;TI"#=> true ;TI" ;TI"&q = Thread::Queue.new([1, 2, 3]) ;TI"-#=> #<Thread::Queue:0x00007ff7500ec500> ;TI"q.empty? ;TI"#=> false ;TI"q.pop ;TI" #=> 1;T:@format0: @fileI"thread_sync.c;T:0@omit_headings_from_table_of_contents_below0I"MThread::Queue.new -> empty_queue Thread::Queue.new(enumerable) -> queue ;T0[ I"(p1 = v1);T@ FI" Queue;TcRDoc::NormalClass00