Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
toplan committed Dec 31, 2015
1 parent de20b2a commit 3320dc9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lightweight and powerful task load balancing for php
# Install

```php
composer require 'toplan/task-balancer:~0.2.3'
composer require 'toplan/task-balancer:~0.3.0'
```

# Usage
Expand All @@ -26,11 +26,11 @@ Balancer::task('task1', function($task){
$task->driver('driver_1 100 backup', function($driver, $data){
//do something here
...
//set whether run success/failed at last
//set whether run success/failure at last
if ($success) {
$driver->success();
} else {
$driver->failed();
$driver->failure();
}
//return some data you need
return 'some data here';
Expand Down

0 comments on commit 3320dc9

Please sign in to comment.