ProtectedcurrentlyProtectedqueueProtectedqueueAdd an item to the queue. Only await this if you want to wait for the promise to be added and resolved (or rejected).
Optionalid: PropertyKeyA promise that resolves at the same time as the added item.
ProtectedhandleHandles a queue item finishing, whether it be a rejection or a resolution.
Checks if the given id is currently in the queue.
true if the item is in the queue and has not been resolved or rejected. false if
the item has never been in the queue or has been resolved / rejected from the queue.
ProtectedtriggerTries to trigger the next queue item, if there is one.
Whether a new queue item was triggered or not. true if it was, otherwise false.
A queue that manages its items with promises.
Package
@augment-vir/common