> Bit of a strange request maybe but looking for some help.
> I have some cpython code I'm writing in which I want to effectively do what
> is achieved by Java5's FutureTask, i.e.
> - invoke a task in a new thread
> - at some later point get the result of task execution, waiting if need be
> for it to complete
> If I used Jython, is there anything to be aware of with respect to
> leveraging java5 util.concurrent classes ?
I think you'd be better off writing portable python, so that it can
run on cpython and jython. How about this?
from threading import Timer
print "hello, world"
t = Timer(5.0, my_timed_task)
print "Timer started"
print "Timer finished"