-
-
Notifications
You must be signed in to change notification settings - Fork 388
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add specs for Fiber.blocking?
#886
Conversation
@eregon 👋 I am a little confused by the failures. spec/core/fiber/blocking_spec.rb Lines 9 to 12 in 6a187f8
From the description of the feature. I would expect this to pass. However, it fails
spec/core/fiber/blocking_spec.rb Lines 32 to 35 in 6a187f8
Above causes
|
Matz rejected |
🤦I made it to try and cover the different cases. I was only going off the description and did not read through the whole thread. Thanks for letting me know. Now just need to figure out why the first case is not returning |
I believe we changed the default to be non-blocking by default. Originally we wanted to preserve the existing behaviour but it was deemed safe enough to allow non-blocking by default. |
6a187f8
to
02c58f7
Compare
Ah I see now https://docs.ruby-lang.org/en/master/Fiber.html#method-c-new. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks great, could you address my comments?
BTW, yes the CRuby bug tracker is not a great place to find out what was actually implemented unfortunately.
7f2f0b1
to
99307d6
Compare
99307d6
to
fefa639
Compare
I think I covered all the cases and hopefully got the wording right 🤞 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks awesome, thank you!
relates to #823