Overview
Keeps a fixed-size active list and stores overflow items in a secondary queue. Added values are appended in order, then split intostate (up to limit) and queue (the rest).
Import
Signature
Parameters
Return Value
Object containing queue state and manipulation functions
Active items (up to limit)
Overflow items waiting to enter state
Adds items to state or queue based on limit
Applies an updater function to all items (state + queue)
Clears the overflow queue