Skip to content

Commit

Permalink
change name
Browse files Browse the repository at this point in the history
  • Loading branch information
xinchi.kong committed May 14, 2017

Unverified

This commit is not signed, but one or more authors requires that any commit attributed to them is signed.
1 parent 0bf6885 commit 7906787
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@ Run jobs with multi process. | 脚本多进程执行
<?php
require_once(dirname(__DIR__) . '/vendor/autoload.php');

$manager = new \Jorker\JobForkerManager(3);
$manager = new \Jorker\JobForker(3);
$manager->allot(function() {
// RETURN OR YIELD JOBS IN MASTER PROCESS...
@@ -31,7 +31,7 @@ Run jobs with multi process. | 脚本多进程执行
});
## Options
\Jorker\JobForkerManager::__construct($limit, $options)
\Jorker\JobForker::__construct($limit, $options)

@param int $limit | Sub process limit. 使用多少个子进程
@param array $options | configs. 配置项
2 changes: 1 addition & 1 deletion src/JobForker.php
Original file line number Diff line number Diff line change
@@ -67,7 +67,7 @@ class JobForker
protected $statistics;

/**
* JobForkerManager constructor.
* JobForker constructor.
* @param int $limit 进程数量
* @param array $options
* options e.g.

0 comments on commit 7906787

Please sign in to comment.