mrmadclown/poller

v3.0 2020-12-21 08:46 UTC

This package is auto-updated.

Last update: 2024-10-28 15:44:01 UTC


README

Build Status License: MIT Latest Stable Version Total Downloads

Installation

composer require mrmadclown/poller

Usage

use MrMadClown\Poller\TimedPoller;

$poller = new TimedPoller(1, 10);

$result = $poller->run(function (){
    return $this->checkSomeThingMaybeMakeAnHTTPCall();
});