PHP bandwidthThrottle\tokenBucket TokenBucket::consume - 2 examples found. These are the top rated real world PHP examples of bandwidthThrottle\tokenBucket\TokenBucket::consume extracted from open source projects. You can rate examples to help us improve the quality of examples.
This method consumes only tokens if there are sufficient tokens available.
If there aren't sufficient tokens, no tokens will be removed and the
remaining seconds to wait are written to $seconds.
This method is threadsafe.