Skip to content

Add io-nonblock signatures - #3247

Open
sourya2704 wants to merge 1 commit into
ruby:masterfrom
sourya2704:add-io-nonblock-signatures
Open

sourya2704 wants to merge 1 commit into
ruby:masterfrom
sourya2704:add-io-nonblock-signatures

Conversation

@sourya2704

Copy link
Copy Markdown
Contributor

Part of #1.

Adds signatures for io/nonblock: IO#nonblock, IO#nonblock= and IO#nonblock?, with tests.

IO#nonblock= returns self here, not a boolean as its call-seq says. The C function returns self, so r.send(:nonblock=, true) gives the IO back. I opened ruby/io-nonblock#53 about the docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant