Property | Type | Description | |
---|---|---|---|
$success | array | 已完成的任务队列(查看处理结果) |
Property | Type | Description | |
---|---|---|---|
$queue | array | 线程队列 | |
$tasks | array | 当前任务队列 |
Method | Description | |
---|---|---|
__construct ( integer $max = 10, boolean $saveSuccess = false, integer $readDataLen = 1024, integer $timeout = 3 ) | 构造函数 | |
add ( string $host, string $path = '/' ) | 往线程队列添加任务 | |
getSuccessInfo ( ) : array | 已完成的任务队列(查看处理结果) | |
run ( ) : array | 执行线程队列里的所有任务 |
Method | Description | |
---|---|---|
makeTask ( ) : integer | 创建任务 | |
processTask ( array &$task ) | 处理任务 |