2017 © Pedro Peláez
 

library loop

Event supported Loop library

image

rubicon/loop

Event supported Loop library

  • Monday, October 5, 2015
  • by ronan-gloo
  • Repository
  • 1 Watchers
  • 1 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Event Supported Loop

Usage Example:, (*1)

namespace Rubicon\Loop;

(new Loop([
        'interval' => 100,
        'repeat'   => 26,
    ]))
    ->attach(LoopEvent::EVENT_LOOP_START, function() {
        echo 'start...' . PHP_EOL;
    })
    ->attach(LoopEvent::EVENT_EXECUTE_POST, function(LoopEvent $event) {
        echo $event->getResult() . PHP_EOL;
    })
    ->attach(LoopEvent::EVENT_LOOP_STOP, function(LoopEvent $event) {
        echo $event->getException()->getMessage() . PHP_EOL;
    })
    ->invoke(function(LoopEvent $event) {
        $result = $event->getResult();
        return $result ? ++$result : 'A';
    })
;

The Versions

05/10 2015

dev-master

9999999-dev

Event supported Loop library

  Sources   Download

The Requires

 

The Development Requires

loop event

05/10 2015

0.1.0

0.1.0.0

Event supported Loop library

  Sources   Download

The Requires

 

The Development Requires

loop event