Author jamesmudd
Recipients jamesmudd
Date 2019-03-27.19:36:59
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
To do this is easy we just need to froward the call method to the __call__ method.

It would be useful because all PyFunctions are Callable in the Java sense and it would be the first stage of allowing functions to be passed to Java methods as Callables.

See the attached example for how this could be used with Java executors and Futures.

Unfortunately this is not enough the MRO of puts ExecutorService.submit(Runnable) ahead of ExecutorService.submit(Callable<T>) so this would need to be resolved as well but if it was then the example could work as expected.
Date User Action Args
2019-03-27 19:37:00jamesmuddsetrecipients: + jamesmudd
2019-03-27 19:37:00jamesmuddsetmessageid: <>
2019-03-27 19:37:00jamesmuddlinkissue2750 messages
2019-03-27 19:36:59jamesmuddcreate