Skip to content
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

@ready loop cood be infinite #25

Closed
funny-falcon opened this issue Jul 5, 2018 · 1 comment
Closed

@ready loop cood be infinite #25

funny-falcon opened this issue Jul 5, 2018 · 1 comment

Comments

@funny-falcon
Copy link
Contributor

async/lib/async/reactor.rb

Lines 153 to 155 in 68db286

@ready.each do |fiber|
fiber.resume if fiber.alive?
end

Try this:

a = [1,2,3,4,5,6,7,8]
a.each{|i| a<<i}
@ioquatix
Copy link
Member

ioquatix commented Jul 5, 2018

Yes, I should probably swap it out, do you want to make a PR?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants