concerto/actors

Library for executing Actors in order of their dependency on each other.

v0.1 2014-04-29 21:11 UTC

README

Library for executing Actors in order of their dependency on each other.

Build Status

Install

The recommended way to install Actors is through composer.

{
    "require": {
        "concerto/actors": "0.*"
    }
}

Usage

use Concerto\Actors\ExecutionIterator;

$actors = new ExecutionIterator([
	new TestActor(),
	new TestActor()
]);

while ($actors->execute()) {
	$actor = $actors->current();

	// Add to the profiler, or whatever here.
}