'An ordered list of upcoming events.
Events are named tuples with fields for:
time, priority, action, arguments, kwargs'

@property
def queue(self):

    with self._lock:
        events = self._queue[:]
    return list(map(heapq.heappop, ([events] * len(events))))
