queue_it 0.10.0
queue_it: ^0.10.0 copied to clipboard
QueueIt makes dealing with queues easy. You can add multiple listeners, specify the number of concurrent items to process, view queue progress and more.
0.10.0 #
- Requires Dart 3.5 or later.
- BREAKING CHANGE: an item whose retries run out is now
failed, notcanceled, and keeps the error inQueueItem.errorandQueueItem.stackTrace. - BREAKING CHANGE:
addthrows anArgumentErrorfor an id the queue already has, andaddandstartthrow aStateErroronce the queue is disposed. - BREAKING CHANGE:
cancelonly cancels pending and processing items, and returns false for the rest. - BREAKING CHANGE: a new batch starts when an item is added after every item has finished, as
QueueItem.batchIdalways said, instead of only when the queue is empty. - Fix: canceling an item while it's processing no longer gets overwritten when its handler returns, and a canceled item is no longer retried.
- Fix: removed items, including after
removeAll, are no longer processed. Their status becomesremoved. - Fix:
onUpdatelisteners can call the queue (to add, cancel, stop and so on) without aBad state: Cannot fire new eventerror. - Fix: after
stop,runningcompletes once the running items finish,isProcessingbecomes false andstoppedProcessingis sent. - Fix: stopping and starting the queue at once no longer runs more than
parallelitems. - Fix:
cancel,removeandhasItemfind the queue's item by id, so they work with the copies in snapshots. - Fix:
nextStatus = processingfails the item instead of leaving the queue running forever, andnextStatus = canceledsends one event instead of two. - Fix: processing time no longer grows with the number of finished items in the queue.
- Fix: the README's link to flutter_queue_it.
- Add:
retryDelayandretryIf. - Add:
waitFor(id), which completes when an item finishes. - Add: the
canceledextension getter;cancelledis deprecated, and so is the unusedOnUpdateCallback. - Add: pub.dev topics.
- Docs: the whole API is documented, and the README covers more of the queue, with a section on migrating from 0.9.
0.9.0 #
- Fix dependency constraints
0.0.4 #
- Improve: disable deep-copying items in snapshots by default, greatly improving performance. This can be controlled by setting
deepCopyItemsInSnapshot.
0.0.3 #
- Fix: improve order of operations when using parallel processing
- Fix: retries
- Add: queue date fields
- Add: toString() summaries for queue, snapshot, and item
0.0.2 #
- Fix: updated repo urls
- BREAKING CHANGE: changed
concurrentOperationstoparallel - BREAKING CHANGE: changed
retryLimittoretries - Add: added example project to queue_it
- Improve: only send snapshot events when there are subscribers
- Feat: added option
useFriendlyIdsto make ID's more readable (experimental)
0.0.1 #
- Initial version.