dart_queue icon indicating copy to clipboard operation
dart_queue copied to clipboard

A library to easily handle sequential queueing of futures in dart.

Results 14 dart_queue issues
Sort by recently updated
recently updated
newest added

This package is really useful; here's a simple addition to make it even more useful.

It would be nice to get a method to insert a new element at the front of the queue vs. only adding items to the end.

When a task is completed and there is a delay at line 159, calling _queueUpNext at line 162 may potentially result in exceeding the maximum concurrent execution limit.

We needed the option to enqueue tasks with priorities. This is a first shot at it. Let me know what you think. * Also fixes obsolete imports in the README....

I used queue to wait for all requests finished like this: ``` var queue = Queue(parallel: 4); for (final item in items) { if(valid(item)) { queue.add(() => _sendRequest(item)); } }...

In combination with #6, a way to limit the queue in size would be helpful as well. This may be trickier to achieve if items are added from both sides.

If i for example have five items remaining in the queue is there any way to insert a new future into for example a second position? And thanks for the...

don't remove from queue if future response has error. Remove from queue based on response or condition.