Skip to content

Commit

Permalink
update reade.me
Browse files Browse the repository at this point in the history
  • Loading branch information
toplan committed Dec 6, 2015
1 parent 9ef88f3 commit 6de830a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
19 changes: 18 additions & 1 deletion 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.1.4'
composer require 'toplan/task-balancer:~0.1.5'
```

# Usage
Expand Down Expand Up @@ -54,6 +54,23 @@ Balancer::task('task1', function($task){
$result = Balancer::run('task1');
```

The `$result` structure:
```php
[
'success' => true,
'time' => [
'started_at' => '',
'finished_at' => ''
],
'logs' => [
'driver_1' => [
...
],
...
]
]
```

# API

## 1. Create & Run
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "toplan/task-balancer",
"description": "lightweight and powerful task load balancing for php (like the nginx load balancing)",
"license": "MIT",
"version": "0.1.4",
"version": "0.1.5",
"keywords": ["task", "balance", "load balancing", "balancer"],
"authors": [
{
Expand Down

0 comments on commit 6de830a

Please sign in to comment.