Discussion:
[jruby-user] Issue with java.util.concurrent.Callable
Max Gonzih
2014-05-17 07:38:53 UTC
Permalink
Hi guys, so I was playing with concurrency in jruby and found some weird
behavior that I don't understand. Here is gist with code sample and
description: https://gist.github.com/Gonzih/f62ccc35a9d4d8d23ba0 in
short issue is that if I call proc from inside instance of Callable I
can't do any wrapping around this call (callbacks, error handilng and
etc). Can someone explain to me what is going on behind the scene?

Thanks!


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email
Karol Bucek
2014-05-17 12:40:27 UTC
Permalink
keyboard - computer "in-between" error :) ... see comment.

next time try http://stackoverflow.com/questions/tagged/jruby

cheers, K.
Post by Max Gonzih
Hi guys, so I was playing with concurrency in jruby and found some weird
behavior that I don't understand. Here is gist with code sample and
description: https://gist.github.com/Gonzih/f62ccc35a9d4d8d23ba0 in
short issue is that if I call proc from inside instance of Callable I
can't do any wrapping around this call (callbacks, error handilng and
etc). Can someone explain to me what is going on behind the scene?
Thanks!
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
Max Gonzih
2014-05-17 13:03:47 UTC
Permalink
Oh, thanks! Duck typing played against me this time :)
Post by Karol Bucek
keyboard - computer "in-between" error :) ... see comment.
next time try http://stackoverflow.com/questions/tagged/jruby
cheers, K.
Hi guys, so I was playing with concurrency in jruby and found some weird
behavior that I don't understand. Here is gist with code sample and
https://gist.github.com/Gonzih/f62ccc35a9d4d8d23ba0 in
short issue is that if I call proc from inside instance of Callable I
can't do any wrapping around this call (callbacks, error handilng and
etc). Can someone explain to me what is going on behind the scene?
Thanks!
---------------------------------------------------------------------
http://xircles.codehaus.org/manage_email
---------------------------------------------------------------------
To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

Loading...