PHP Class Icicle\Examples\Concurrent\BlockingTask

Inheritance: implements Icicle\Concurrent\Worker\TaskInterface
Datei anzeigen Open project: icicleio/concurrent

Public Methods

Method Description
__construct ( callable $function, $args )
run ( Icicle\Concurrent\Worker\Environment $environment )

Method Details

__construct() public method

public __construct ( callable $function, $args )
$function callable Do not use a closure or non-serializable object.
$args Arguments to pass to the function. Must be serializable.

run() public method

public run ( Icicle\Concurrent\Worker\Environment $environment )
$environment Icicle\Concurrent\Worker\Environment