Skip to content

Commit

Permalink
Document that non-blocking mode isn't always supported on Windows [ci…
Browse files Browse the repository at this point in the history
… skip]
  • Loading branch information
Jesus authored and jeremyevans committed Jul 23, 2019
1 parent 676df31 commit b6f07f7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions prelude.rb
Expand Up @@ -39,6 +39,10 @@ class IO
#
# read_nonblock causes EOFError on EOF.
#
# On some platforms, such as Windows, non-blocking mode is not supported
# on IO objects other than sockets. In such cases, Errno::EBADF will
# be raised.
#
# If the read byte buffer is not empty,
# read_nonblock reads from the buffer like readpartial.
# In this case, the read(2) system call is not called.
Expand Down

0 comments on commit b6f07f7

Please sign in to comment.