SOLR-9559 adds a general purpose parallel task executor for streaming expressions. The executor() function executes a stream of tasks and doesn't have any concept of task priority.
The priority() function wraps two streams, a high priority stream and a low priority stream. The priority function emits tuples from the high priority stream first, and then the low priority stream.
The executor() function can then wrap the priority function to see tasks in priority order.