메소드 | 설명 | |
---|---|---|
__construct ( callable $function, $args ) | ||
run ( Icicle\Concurrent\Worker\Environment $environment ) |
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. |
public run ( Icicle\Concurrent\Worker\Environment $environment ) | ||
$environment | Icicle\Concurrent\Worker\Environment |