Skip to content

Commit

Permalink
=修改readme
Browse files Browse the repository at this point in the history
  • Loading branch information
郭庆哲 committed May 23, 2018
1 parent 785455b commit 4451937
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
You can use composer to install this library from the command line.

```bash
composer require sinacms/mutilprocessing
composer require sinacms/multiprocess
```

## Usage
Expand All @@ -34,7 +34,7 @@ composer require sinacms/mutilprocessing

use Mutilprocessing\Async;

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

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

use Mutilprocessing\Async;

Mutilprocessing\Async::join(function($code, $out, $err) use(&$outData) {
Async::join(function($code, $out, $err) use(&$outData) {
// var_dump($code, $out, $err);
$outData = $out;
});
Expand All @@ -59,7 +59,7 @@ Mutilprocessing\Async::join(function($code, $out, $err) use(&$outData) {

use Mutilprocessing\Async;

Mutilprocessing\Async::discard();
Async::discard();
```


Expand Down

0 comments on commit 4451937

Please sign in to comment.