Skip to content

timeout method not calling Timeout::timeout #3158

@HoneyryderChuck

Description

@HoneyryderChuck

I'm supporting and using a library which overwrites the timeout method:

https://github.com/celluloid/timeout-extensions

It's kind of a "monkey-patch-fu" extension for celluloid, as celluloid has its own timeout method and currently ruby doesn't support an API for switching timeout methods depending of method.

Currently only the Timeout module is being patched, here
This was done just because

But in JRuby (9.0.0.0.rc2) it seems that timeout and Timeout::timeout are not the same. Calling timeout jumps straight to the Java implementation, which breaks this patch. So, instead of one, I have to patch two methods for JRuby. Should JRuby follow the standard from MRI in this case, or is there a reason? I would prefer not to patch the same thing two times.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions