Closed ioquatix closed 5 days ago
Confirmed tests passing on ruby-head.
Does this mean that every time something releases the GVL, async will create a new thread?
Yes the current implementation is a bit naive. I’ll implement a thread pool if it makes sense to do so. The overhead of thread creation isn’t so bad though - will need to spend some time testing it.
This is a very basic implementation of the
Fiber::Scheduler#blocking_operation_wait
hook.See https://bugs.ruby-lang.org/issues/20876 for more context.
Types of Changes
Contribution