ruby / timeout

Timeout provides a way to auto-terminate a potentially long-running operation if it hasn't finished in a fixed amount of time.
Other
143 stars 21 forks source link

JRuby support #11

Closed headius closed 2 years ago

headius commented 2 years ago

JRuby's timeout is based on JVM ScheduledExecutor logic that efficiently pools threads. We would like to share the gem so we will need to merge our implementation. We will handle the work necessary.

hsbt commented 2 years ago

👍

headius commented 2 years ago

I'm going to try to do this in pure-Ruby, since this library is small and the calls into the JDK Executor thread pool would be fairly simple to do from Java.

headius commented 2 years ago

14

eregon commented 2 years ago

Added in https://github.com/ruby/timeout/pull/15 and released by hsbt.