File: C:/Ruby27-x64/share/ri/2.7.0/system/Net/IMAP/idle-i.ri
U:RDoc::AnyMethod[iI" idle:ETI"Net::IMAP#idle;TF:publico:RDoc::Markup::Document:@parts[o:RDoc::Markup::Paragraph; [I"KSends an IDLE command that waits for notifications of new or expunged ;TI"Amessages. Yields responses from the server during the IDLE.;To:RDoc::Markup::BlankLine o;
; [I"$Use #idle_done() to leave IDLE.;T@o;
; [I"PIf +timeout+ is given, this method returns after +timeout+ seconds passed. ;TI"L+timeout+ can be used for keep-alive. For example, the following code ;TI"/checks the connection for each 60 seconds.;T@o:RDoc::Markup::Verbatim; [
I"
loop do
;TI" imap.idle(60) do |res|
;TI"
...
;TI" end
;TI"end;T:@format0:
@fileI"lib/net/imap.rb;T:0@omit_headings_from_table_of_contents_below000[ I"'(timeout = nil, &response_handler);T@FI" IMAP;TcRDoc::NormalClass00