Skip to content

Commit

Permalink
add retry api, update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
switer committed Dec 2, 2014
1 parent c37fc09 commit 2a58d20
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,18 @@ Define chain steps, if a then step has multiple functions, step over after each
Chain(func).then(func1).then(funcA1, funcA2, funcA3)
```

### .retry()
Call current step handler once again (recursive).
```javascript
var flag
Chain(function (chain, data) {
if (flag) {
return chain.next()
}
flag = true
}).start('value')
```

### .some(func, func1, ..., funcN)
When call chain.next in which handler of "some" step will be over current step.
```javascript
Expand Down

0 comments on commit 2a58d20

Please sign in to comment.