Fiber scheduler changes #11
samuel-williams-shopify
started this conversation in
General
Replies: 1 comment
-
|
Thank you for the pointer! I've added a task to build the latest Ruby 3.5 and experiment with those hooks (and also to take a closer look at what you're doing with these inside Async, for inspiration 🙂 ) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In Ruby 3.5/4.0 there are some changes to the fiber scheduler which you should consider adopting.
Fiber::Scheduler#fiber_interruptas described https://bugs.ruby-lang.org/issues/21166Fiber::Scheduler#blocking_operation_waitis an experimental support for offloadingrb_nogvlwork to a background thread pool (to prevent stalling the event loop).Would be interested to see how you'd integrate that with Itsi.
Beta Was this translation helpful? Give feedback.
All reactions