-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
[Question] How to stop a fiber? #263
Comments
reading the source of Task, i found this:
And it seems to be working fine. |
The problem with We should probably fix this in Ruby itself, so that it just works as expected. Let me look into this issue in more detail this week. |
Thanks! (My program is a bit more complicated than the one i posted, i lost some hair figuring this out :) |
If you check |
I have still no idea how to stop a Fiber from running (unschedule).
I was told that i can raise an exception, but it is not working as i hoped.
Can you help me how to do that?
In this code i was expecting @fib1 to exit, but it does not exit ever.
Do I have any alternative options?
The text was updated successfully, but these errors were encountered: