enqueue()
enqueue_ordered()
is_empty()
pop_item()
pop_all()
get_item()
max_importance()
clear()
iterate()
Get the top item from a buffer without popping it.
buffer (list[tuple[float, object]]) –
importance (bool, default=False) – If True is given, return the importance as well as the object.
object or tuple[float, object]