Skip to content

lrrrrrrrr/exponential_backoff

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Exponential backoff

Installation

composer require nsleta/exponential_backoff

Usage

    $retry = new ExponentialBackoff\Retry();
    $retry->setInterval(3000); // optional, default interval is 2000
    $retry->setMaxAttempts(2); // optional, default max attempts is 3
    $result = $retry->call(function() { return 'done'; }, [RuntimeException::class]);

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages