File: C:/Ruby27-x64/lib/ruby/gems/2.7.0/doc/net-imap-0.3.4/ri/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"]Sends an {IDLE command [RFC2177 §3]}[https://www.rfc-editor.org/rfc/rfc6851#section-3] ;TI"S{[IMAP4rev2 §6.3.13]}[https://www.rfc-editor.org/rfc/rfc9051#section-6.3.13] ;TI"Gthat waits for notifications of new or expunged messages. Yields ;TI"/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:@format0o;
; [I"'Related: #idle_done, #noop, #check;T@S:RDoc::Markup::Heading:
leveli
: textI"Capabilities;T@o;
; [I"3The server's capabilities must include +IDLE+ ;TI"4[RFC2177[https://tools.ietf.org/html/rfc2177]].;T:
@fileI"lib/net/imap.rb;T:0@omit_headings_from_table_of_contents_below000[ I"'(timeout = nil, &response_handler);T@*FI" IMAP;TcRDoc::NormalClass00