Skip to content

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.

number

EventConsumerPollOptions = {}

number