mirror of
https://github.com/home-assistant/core.git
synced 2025-11-14 05:20:17 +00:00
Even more test coverage
This commit is contained in:
@@ -246,6 +246,10 @@ class ThreadPool(object):
|
||||
|
||||
self.busy_callback(self.current_jobs, self.work_queue.qsize())
|
||||
|
||||
def block_till_done(self):
|
||||
""" Blocks till all work is done. """
|
||||
self.work_queue.join()
|
||||
|
||||
|
||||
class PriorityQueueItem(object):
|
||||
""" Holds a priority and a value. Used within PriorityQueue. """
|
||||
|
||||
Reference in New Issue
Block a user