Closed troex closed 2 years ago
changing the method call to @reactor.sleep
avoids the error, but the second task:
while true
callback.run(0)
puts 'Sleeping for 1 second'
sleep(1)
end
never seems to get executed. I agree, this is edge enough that more complete examples are really needed. Thanks for all the hard work pushing Ruby ahead in this space!
I've updated the example, it should work correctly now. Feel free to ask more questions or suggest improvements.
I guess it's after d6d80a3d613b359d5fe9c90be63fe64bdb26ba27 commit, I'm trying to get how all your async stuff works together - examples and code are the only way to get it all