-
Notifications
You must be signed in to change notification settings - Fork 195
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
concurrent-ruby deprecated feature #310
Comments
👍 |
|
AFAICT the deprecated feature was our (buggy and inefficient) We may be able to replace that instance of I'll try to create a PR this afternoon for you to look at. I also notice that you use thread local variables. In c-r 0.9.1 we released our own implementation of |
@jdantonio thanks for the help. A PR would be great, let me know if I can help. Yea, timeout is the feature that I was using, and I had the same thoughts about standard timeout spawning new threads. Basically we need a worker pool with a timeout. Thanks for all of the great work on concurrent-ruby. Also, I'll check out ThreadLocalVar, |
@ryanstout I think we can make that work. Possibly simplify the code in the process. All of our high-level abstractions post to global thread pools, and most offer methods with timeout. More importantly, most of our high-level abstractions also allow the specific thread pool for execution to be configured via dependency injection. So instead of posting directly to
I know that the specific implementation will be more complicated than that, but this is the basic idea. There are other options, too. We also have actors and agents. I'll work on it and submit another PR once I get something working. |
@jdantonio thanks again, I owe you one. Let me know if I can help. Having timeouts without spinning up a new thread would be great. |
I just noticed that this project uses concurrent-ruby. I am the creator and lead maintainer of that project. I see in your gemspec that we've deprecated a feature you depend on. I'm sorry that we've caused you problems but I'd love to help you find a solution. I'm even willing to add new features if need be. Is there anything I can do to help?
The text was updated successfully, but these errors were encountered: