-
Notifications
You must be signed in to change notification settings - Fork 419
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Align Java Executor Service behavior for shuttingdown?
, shutdown?
#1042
Conversation
a7d609b
to
6f64bb2
Compare
lib/concurrent-ruby/concurrent/executor/java_executor_service.rb
Outdated
Show resolved
Hide resolved
93195e0
to
e41c843
Compare
|
Could you make a PR to add timeouts of 10 minutes (which looks enough from looking at previous runs) for all CI workflows? |
Can you reproduce the issue locally with TimerSet on JRuby? |
Co-authored-by: Benoit Daloze <eregontp@gmail.com>
e41c843
to
0da4582
Compare
shuttingdown?
shutdown?
and kill
shuttingdown?
shutdown?
shuttingdown?
shutdown?
shuttingdown?
, shutdown?
@eregon Thank you for the help! 🙇🏻
I feel mixed. A lot of Concurrent Ruby is inspired by Java objects, so it seems like it would be better (simpler? more performant? less potential for bikeshedding or 2nd-systeming them?) to lightly wrap them rather than use a Ruby implementation. I have similar vague feelings about Native C Extensions too; which to chit-chat also makes me wonder if YJIT would make that less worthwhile. |
The concurrent-ruby C ext is only for atomic variables. |
Fixes #1041
shuttingdown?
now usesisShutdown && !isTerminated
shutdown?
now accurately represents when all tasks have terminatedExtractedkill
now waits for all tasks to terminate (it waits indefinitely; I'm not sure if it's possible for that to hang on Java)#kill
change to ThreadPoolExecutorkill
willwait_for_termination
in JRuby #1044