3 ms·
Random delays specifically do not, as they average out. Delays until a specific point in time do work, so long as the delay is never negative.
by Filligree 2y ago
Random delays specifically do not, as they average out. Delays until a specific point in time do work, so long as the delay is never negative.
- bostik 2y agoThis particular case would be a fantastic fit for timer wheel.[0] Instead of writing a brittle implementation of "after a fixed time in the future" logic yourself, you queue the outgoing event to occur after N ticks [of granularity X], and let the dedicated data structure engine do the work for you. 0: https://www.snellman.net/blog/archive/2016-07-27-ratas-hierarchical-timer-wheel/ https://www.snellman.net/blog/archive/2016-07-27-ratas-hiera...