lamnhan066 / isolate_manager

Create multiple long-lived isolates for the Functions, supports Worker on the Web (with the effective generator) and WASM compilation.
https://pub.dev/packages/isolate_manager
MIT License
31 stars 1 forks source link

[Feature] Set the priority for a new compute #24

Open lamnhan066 opened 6 days ago

lamnhan066 commented 6 days ago

If we have a long list of queued functions, we should have a way to increase the priority of a new compute so it will be executed as soon as there is a free isolate.

Proposal

lamnhan066 commented 6 days ago

If multiple functions have the same priority, the oldest one will be executed first (FIFO).