Skip to content
/ retry Public

Retry given callback after executing action callback

Notifications You must be signed in to change notification settings

ikerasLT/retry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

retry

Retry given callback after executing action callback

Usage

retry_callback($callback, $action, [$times_to_repeat=1])

Returns result of first callback

If Exception is thrown in the first callback the action callback is called and original callback is repeated

If Exception is thrown after specified amount of retries the original exception is thrown

About

Retry given callback after executing action callback

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages