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
Create an IsolatePriority enum with values: low, normal, and high.
All computes have a IsolatePriority.normal as default.
When we want to change a priority, we need to pass either high or low to increase or decrease the priority.
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
IsolatePriority
enum with values:low
,normal
, andhigh
.compute
s have aIsolatePriority.normal
as default.high
orlow
to increase or decrease the priority.