Thread-safe throttle.