2017 © Pedro Peláez
 

library retry

A tiny library for retrying failing operations.

image

igorw/retry

A tiny library for retrying failing operations.

  • Saturday, September 20, 2014
  • by igorw
  • Repository
  • 21 Watchers
  • 504 Stars
  • 86,069 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 28 Forks
  • 5 Open issues
  • 4 Versions
  • 5 % Grown

The README.md

retry

A tiny library for retrying failing operations., (*1)

Since the network is reliable, things should always work. Am I right? For those cases when they don't, there is retry., (*2)

use function igorw\retry;

// retry an operation up to 5 times
$user = retry(5, function () use ($id) {
    return User::find($id);
});

// here is why you want to start using HHVM
$user = retry(5, () ==> User::find($id));

// this is probably a bad idea
$user = retry(INF, () ==> {
    throw new RuntimeException('never gonna give you up');
});
?>

I know. You're welcome., (*3)

The Versions

20/09 2014

dev-on-error

dev-on-error

A tiny library for retrying failing operations.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

failure

20/09 2014

dev-master

9999999-dev

A tiny library for retrying failing operations.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

failure

20/09 2014

dev-result-structure

dev-result-structure

A tiny library for retrying failing operations.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

failure

20/09 2014

dev-collect-exceptions

dev-collect-exceptions

A tiny library for retrying failing operations.

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

failure