Java SE has a scalable Timer object that, using one single thread, allows large numbers of concurrently scheduled tasks (thousands should present no problem). It internally uses a binary heap to represent its task queue.
Is there a Python equivalent? Standard or in a very popular library is preferable.
Yes, have a look at the sched module. It utilizes binary heap (from heapq) as well.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With