Blocking a thread for x seconds
Diez B. Roggisch
deets at nospam.web.de
Thu Mar 9 11:42:06 EST 2006
Fernando Rodredguez wrote:
> I have a class that descends from threading.Thread. One method should
> block
> the thread during x seconds and then call another method. How can I do
> this?
time.sleep(x) [*]
* this comes witout any warranty about the slept time whatsoever under the
assumption that time.sleep is not run under a RTOS with guaranteed timings
Diez
More information about the Python-list
mailing list