computeEventPollWaitMs
computeEventPollWaitMs(
idleCount,options?):number
Defined in: packages/server/src/events/consumer.ts:303
The adaptive wait for idleCount CONSECUTIVE unproductive reads (an empty read or a queue fault), clamped to
the ceiling. idleCount is 1 for the first one; a productive read resets it to 0 and re-reads immediately.
Parameters
Section titled “Parameters”idleCount
Section titled “idleCount”number
options?
Section titled “options?”Returns
Section titled “Returns”number