dev-master
9999999-devEvent supported Loop library
The Requires
The Development Requires
loop event
0.1.0
0.1.0.0Event supported Loop library
The Requires
The Development Requires
loop event
Event supported Loop library
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'; }) ;
Event supported Loop library
loop event
Event supported Loop library
loop event