-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Astan Chee wrote:
> I was thinking of threads but I just simply want to terminate a (global)
> function after it has been running for more than 5 minutes regardless of
> state.
> I was assuming I needed threads because it can calculate time elapsed
> (
This might be all you need:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/473878
--
http://mail.python.org/mailman/listinfo/python-list
I was thinking of threads but I just simply want to terminate a
(global) function after it has been running for more than 5 minutes
regardless of state.
I was assuming I needed threads because it can calculate time elapsed
(that and im rather inexperienced with threads)
Thanks again for your he
Astan Chee wrote:
> Hi,
> Im rather new to threads in python but Im trying to terminate a function
> call (or the execution of the function) after a certain period of time
> has passed.
> Do i need to use threads with this? if i do, how do i go about doing it?
Yes and no. As you didn't tell us mu