queue 3.4.0 copy "queue: ^3.4.0" to clipboard
queue: ^3.4.0 copied to clipboard

Queue up futures from multiple sources and await their return anywhere in your code.

Changelog #

3.4.0 #

  • Added ability to add items to the front of the queue using addToFront parameter (renamed from needsPriority for clarity)
  • Fixed obsolete imports in README examples

3.3.0+2 #

  • Fixed a bug where parallel task limit could be exceeded when tasks complete with delay

3.3.0+1 #

  • No code changes: Added missing changelog entry for LIFO functionality

3.3.0 #

  • Added LIFO (Last In First Out) queue processing option
  • Fixed typos in documentation
  • Updated SDK constraint to support Dart 3

3.2.0+3 #

  • Exposes remainingItemCount

3.1.0+2 #

  • Ensures stack trace isn't swallowed when an error occurs (thanks @Bungeefan)

3.1.0+1 #

  • Fix a bug which would break if the queue stream had been disposed and an item completes.

3.1.0 #

  • BREAKING: Stopping forced nullability of responses. Was hiding a bunch of null errors that would crash an app on launch

3.0.0 #

  • Initial null safe release

2.0.7+2 #

  • Fixing bug where trying to cancel items stream and it doesn't exist

2.0.7+1 #

  • Fixing a bug where the timeout would not return later if the queue promise timed out.

2.0.7 #

  • Potentially breaking: Updated remainingItems stream to include all items that are both waiting to start and in progress (previously it was just waiting to start)
  • Updating remainingItems stream when adding an item as well as upon completion
  • Adding a timeout. This will not cancel the future but will fire off new items in the queue if the future reaches its timeout.
  • Remaining items stream is now lazily created to prevent memory leaks if you aren't using it.

2.0.6 #

  • Adding onComplete getter

2.0.5 #

  • Fixing incorrect reporting of items in queue

2.0.4 #

  • Fixing cancelled not being respected when queueing up new items
  • Adding remainingItems stream
  • Deprecating public access to activeItems set

2.0.3 #

  • Fixing delay not being respected

2.0.2 #

  • Parallel performance improvements

2.0.1 #

  • Adding parallel option

2.0.0 #

  • Futures returned by add are typed.
  • Breaking: Some fields related to the internal implementation are private.
  • Breaking: delay cannot be modified after instantiation.
  • Breaking: An exception will be thrown if add is called after the queue has been cancelled.

1.0.1+2 #

  • Improving the readme

1.0.1+1 #

  • Improving the package description

1.0.1 #

  • Removing some console output

1.0.0 #

  • Initial version
111
likes
150
points
45.9k
downloads

Publisher

unverified uploader

Weekly Downloads

Queue up futures from multiple sources and await their return anywhere in your code.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

More

Packages that depend on queue