Python equivalent of Java Timer java.util.Timer -


java se has scalable timer object that, using 1 single thread, allows large numbers of concurrently scheduled tasks (thousands should present no problem). internally uses binary heap represent task queue.

is there python equivalent? standard or in popular library preferable.

yes, have @ sched module. utilizes binary heap (from heapq) well.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -