John Nunemaker@johnnunemaker.comNice little pattern for background tasks that need to be rate limited a bit: start to start throttling. If you need 1/sec, don't sleep 1. Sleep for the difference 1 minus the duration of the work. 2/9/26, 2:02 pm·1 repost·5 likes