php
PHP 8.6 Duration and clamp() for retry backoff
PHP 8.6 adds a typed Duration class and clamp(). Here is how I would use them to replace usleep() magic numbers in a retry loop.
PHP 8.6 adds a typed Duration class and clamp(). Here is how I would use them to replace usleep() magic numbers in a retry loop.