Lines Matching defs:queue
3 Each instance of this class manages its own queue.
13 function is allowed to modify the queue. Time can be expressed as
18 way the queue can be maintained as a priority queue. Execution of the
63 """Enter a new event in the queue at an absolute time.
88 """Remove an event from the queue.
91 If the event is not in the queue, this raises ValueError.
99 """Check whether the queue is empty."""
104 """Execute events until the queue is empty.
110 delay function is called and the event is left in the queue;
111 otherwise, the event is removed from the queue and executed
117 function to modify the queue or to raise an exception;
155 def queue(self):
162 # Use heapq to sort the queue rather than using 'sorted(self._queue)'.