2017 © Pedro Peláez
 

library retry

A tiny library for retrying failing operations. [fork with tags]

image

schmunk42/retry

A tiny library for retrying failing operations. [fork with tags]

  • Tuesday, April 21, 2015
  • by schmunk
  • Repository
  • 1 Watchers
  • 1 Stars
  • 45,710 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 28 Forks
  • 0 Open issues
  • 5 Versions
  • 9 % 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

21/04 2015

dev-master

9999999-dev

A tiny library for retrying failing operations. [fork with tags]

  Sources   Download

MIT

The Requires

  • php >=5.4

 

The Development Requires

failure

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

0.0.1

0.0.1.0

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