You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Feature request: add an optional argument to allow put to place at specific points in the queue. For example:
defput(self, item: Any, before: int|None=None, after: int|None=None) ->int|None:
"""Put an item onto the queue. By default, items are placed onto the end of the queue. Args: item (Any): The item to enqueue. before: (int | None, optional): The id of the item to place this item before; may not be used with `after`. Defaults to None. after: (int | None, optional): The id of the item to place this item after; may not be used with `before`. Defaults to None. Raises: ValueError: if both `before` and `after` are set in the same call. """# ...
The text was updated successfully, but these errors were encountered:
andrewvaughan
changed the title
Allow put to place in front of Queue item
Feature Request: allow before and after controls for put to fine tune placement within queue
Mar 19, 2024
Feature request: add an optional argument to allow
put
to place at specific points in the queue. For example:The text was updated successfully, but these errors were encountered: