PHP bandwidthThrottle\tokenBucket TokenBucket::consume - 2 exemples trouvés. Ce sont les exemples réels les mieux notés de bandwidthThrottle\tokenBucket\TokenBucket::consume extraits de projets open source. Vous pouvez noter les exemples pour nous aider à en améliorer la qualité.
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.