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

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

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

Laravel Bind Multiple Class to One Contract in The Service Provider -