Page MenuHomeSoftware Heritage

Prevent busy-waiting on / spamming consumer.poll.
ClosedPublic

Authored by vlorentz on Mon, Oct 28, 2:11 PM.

Details

Summary

will return shortly before X expired
(a matter of milliseconds), so after it returns a first time, it
will then be called with a timeout in the order of milliseconds,
therefore returning immediately, then be called again, etc.

This commit prevents it from being called with a timeout <= 10ms.

Diff Detail

Repository
rDJNL Journal infrastructure
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.