How can I get the current amount of open Fibers in a ruby
application? My app uses EventMachine Synchrony lib for concurrency handling. While googling, I've not found any API which would return it.
For example if I have this piece of code:
EM::Synchrony::FiberIterator.new(@outputs, @outputs.size).each do |output|
# some code goes here
end
then how can I know how many fibers are there running? Without manually using counter++
and of course without @some_arr.size
.