[前][次][番号順一覧][スレッド一覧]

ruby-changes:30928

From: akr <ko1@a...>
Date: Sat, 21 Sep 2013 16:52:12 +0900 (JST)
Subject: [ruby-changes:30928] akr:r43007 (trunk): [DOC]

akr	2013-09-21 16:52:02 +0900 (Sat, 21 Sep 2013)

  New Revision: 43007

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43007

  Log:
    [DOC]

  Modified files:
    trunk/io.c
Index: io.c
===================================================================
--- io.c	(revision 43006)
+++ io.c	(revision 43007)
@@ -8486,6 +8486,12 @@ rb_io_advise(int argc, VALUE *argv, VALU https://github.com/ruby/ruby/blob/trunk/io.c#L8486
  *  if optional <i>timeout</i> value is given and no <code>IO</code> object
  *  is ready in <i>timeout</i> seconds.
  *
+ *  <code>IO.select</code> peeks the buffer of <code>IO</code> objects for testing readability.
+ *  If the <code>IO</code> buffer is not empty,
+ *  <code>IO.select</code> immediately notify readability.
+ *  This "peek" is only happen for <code>IO</code> objects.
+ *  It is not happen for IO-like objects such as OpenSSL::SSL::SSLSocket.
+ *
  *  The best way to use <code>IO.select</code> is invoking it
  *  after nonblocking methods such as <code>read_nonblock</code>.
  *  The methods raises an exception which is extended by

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]