eneural-net / async_task

Asynchronous tasks and parallel executors, supporting all Dart platforms (JS/Web, Flutter, VM/Native) through transparent internal implementations with `dart:isolate` or only `dart:async`, easily bringing concepts similar to Thread Pools to Dart, without having to deal with `Isolate` and port/channel complexity.
Apache License 2.0
53 stars 4 forks source link

Feature request: priority queue for sorting tasks #12

Open smsimone opened 2 years ago

smsimone commented 2 years ago

As title says, it would be nice to have an implementation of the AsyncExecutor that uses a PriorityQueue instead of a simple list to store the tasks.

It would be also a really good nice-to-have to let the developer change the requests priority during while the AsyncExecutor executes