2017 © Pedro Peláez
 

library attempt

Retry something until it works

image

spiderling-php/attempt

Retry something until it works

  • Thursday, January 14, 2016
  • by hkdobrev
  • Repository
  • 1 Watchers
  • 0 Stars
  • 63 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Attempt

Build Status Scrutinizer Code Quality Code Coverage Latest Stable Version, (*1)

Retry something until it works, (*2)

Installation

Install via composer, (*3)

composer require spiderling-php/attempt

Usage

``` php $attempt = new Attempt(function () { return ... // Try to do something });, (*4)

// Configure timeout and frequency of tries $attempt->setTimeout(3000); $attempt->setStep(50);, (*5)

// Check how many times it will try before timing out echo $attempt->getTries();, (*6)

return $attempt->execute(); ```, (*7)

License

Copyright (c) 2015, Clippings Ltd. Developed by Ivan Kerin, (*8)

Under BSD-3-Clause license, read LICENSE file., (*9)

The Versions

14/01 2016

dev-master

9999999-dev

Retry something until it works

  Sources   Download

BSD-3-Clause

14/01 2016

0.2.0

0.2.0.0

Retry something until it works

  Sources   Download

BSD-3-Clause

14/09 2015

0.1.0

0.1.0.0

Retry something until it works

  Sources   Download

BSD-3-Clause