Type Alias: Priority
Priority =
number| readonlynumber[]
Defined in: limiter.ts:14
Numeric priority used to order waiters in a Semaphore's queue. Lower
= serviced sooner. A single number is equivalent to a 1-tuple; arrays are
compared lexicographically (element-wise), with missing trailing elements
treated as 0. Returning 0 (or omitting getPriority entirely) makes the
waiter effectively un-prioritized — FIFO arrival order wins among ties.