异步优先级队列 - 数字越大优先级越高吗?

aysnc priorityQueue - is a higher number higher priority?

caolan/async 库中,什么定义了 priorityQueue 中的优先顺序? 1 是第一(最高)优先级,还是数值越大优先级越高?

文档只是说优先级应该是一个数字:

push(task, priority, [callback]) - priority should be a number. If an array of tasks is given, all tasks will be assigned the same priority.

来自您引用的文档:

The same as async.queue only tasks are assigned a priority and completed in ascending priority order.

(强调)

这意味着较小的数字会先出现。