From: https://github.com/tikv/async-speed-limit