-
Notifications
You must be signed in to change notification settings - Fork 93
Evaluate exception: false
*_nonblock APIs
#139
Comments
…one doesn't need to handle Wait* Exception (Closes celluloid#139)
@tarcieri I'm having the issue that nonblocking reads with |
I believe it returns You might take a look at the way I did this in http.rb. I was able to eliminate a lot of the redundancy that exists in the implementation in this PR: https://github.com/httprb/http/blob/master/lib/http/timeout/global.rb#L84 |
It worked 👍 adapted/copy-pasted your perform_io method to the stream class. Will try to do something similar for the UDPSocket case. But this one seemed to do the trick. Fancy a review when you have the time? (not a lot changed, I guess). |
Ruby 2.1 added APIs to perform asynchronous I/O without using exceptions:
I've seen reports of this affording a 2x speedup in async I/O performance, at least on MRI.
I do not know the status of this API on JRuby et al (cc @headius)
The text was updated successfully, but these errors were encountered: