Python Threading.timer Start Immediately Not At Specified Time
i want to execute a function in every 3 second the code works if i call a function without arguments like below: def mytempfunc(): print 'this is timer!' threading.Timer(5,
Solution 1:
Try this:
threading.Timer(5, myotherfunc, [a,b,c,d]).start()
In your code, you actually call myotherfunc(a,b,c,d), rather than passing your function and arguments to the Timer class.
Post a Comment for "Python Threading.timer Start Immediately Not At Specified Time"