Skip to content

Commit 4451937

Browse files
author
郭庆哲
committed
=修改readme
1 parent 785455b commit 4451937

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
You can use composer to install this library from the command line.
2323

2424
```bash
25-
composer require sinacms/mutilprocessing
25+
composer require sinacms/multiprocess
2626
```
2727

2828
## Usage
@@ -34,7 +34,7 @@ composer require sinacms/mutilprocessing
3434

3535
use Mutilprocessing\Async;
3636

37-
Mutilprocessing\Async::create()->run('task.php', ['runTest'.$i]);
37+
Async::create()->run('task.php', ['runTest'.$i]);
3838
```
3939

4040
### sync wait for all process end
@@ -45,7 +45,7 @@ Mutilprocessing\Async::create()->run('task.php', ['runTest'.$i]);
4545

4646
use Mutilprocessing\Async;
4747

48-
Mutilprocessing\Async::join(function($code, $out, $err) use(&$outData) {
48+
Async::join(function($code, $out, $err) use(&$outData) {
4949
// var_dump($code, $out, $err);
5050
$outData = $out;
5151
});
@@ -59,7 +59,7 @@ Mutilprocessing\Async::join(function($code, $out, $err) use(&$outData) {
5959

6060
use Mutilprocessing\Async;
6161

62-
Mutilprocessing\Async::discard();
62+
Async::discard();
6363
```
6464

6565

0 commit comments

Comments
 (0)