D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
opt
/
alt
/
ruby34
/
share
/
ri
/
system
/
Thread
/
Queue
/
Filename :
pop-i.ri
back
Copy
U:RDoc::AnyMethod[iI"pop:ETI"Thread::Queue#pop;TF:publico:RDoc::Markup::Document:@parts[ o:RDoc::Markup::Paragraph; [I"#Retrieves data from the queue.;To:RDoc::Markup::BlankLine o; ; [I"QIf the queue is empty, the calling thread is suspended until data is pushed ;TI"Monto the queue. If +non_block+ is true, the thread isn't suspended, and ;TI"+ThreadError+ is raised.;T@o; ; [I"HIf +timeout+ seconds have passed and no data is available +nil+ is ;TI":returned. If +timeout+ is +0+ it returns immediately.;T: @fileI"thread_sync.rb;T:0@omit_headings_from_table_of_contents_below0I"(pop(non_block=false, timeout: nil) ;T0[[I"deq;To;; [ ;@; 0[I" shift;To;; [ ;@; 0I"&(non_block = false, timeout: nil);T@FI" Queue;TcRDoc::NormalClass00