This prevents the callback function from being called in a busy loop. Discovered by @slydiman on #106955.