Threading module
Verfasst: Freitag 4. März 2022, 11:23
Hallo zusammen,
die offizielle Dokumentation von Python beschreibt ein Timer Objekt folgendermaßen:
"This class represents an action that should be run only after a certain amount of time has passed — a timer. Timer is a subclass of Thread and as such also functions as an example of creating custom threads.
Timers are started, as with threads, by calling their start() method. The timer can be stopped (before its action has begun) by calling the cancel() method. The interval the timer will wait before executing its action may not be exactly the same as the interval specified by the user." (https://docs.python.org/3/library/threa ... er-objects)
Ich bin mir unsicher ob ein Timer Objekt
1) nur selbst ein Thread ist der den Main-Prozess wieder aufruft nach x Sekunden (gewünschte Funktion)
2) die gewünschte Funktion im selben Thread ausgeführt wird wie der Timer
...
Danke für Gedanken.
Freundliche Grüße
die offizielle Dokumentation von Python beschreibt ein Timer Objekt folgendermaßen:
"This class represents an action that should be run only after a certain amount of time has passed — a timer. Timer is a subclass of Thread and as such also functions as an example of creating custom threads.
Timers are started, as with threads, by calling their start() method. The timer can be stopped (before its action has begun) by calling the cancel() method. The interval the timer will wait before executing its action may not be exactly the same as the interval specified by the user." (https://docs.python.org/3/library/threa ... er-objects)
Ich bin mir unsicher ob ein Timer Objekt
1) nur selbst ein Thread ist der den Main-Prozess wieder aufruft nach x Sekunden (gewünschte Funktion)
2) die gewünschte Funktion im selben Thread ausgeführt wird wie der Timer
...
Danke für Gedanken.
Freundliche Grüße