Skip to content

Commit

Permalink
more abstract usage example
Browse files Browse the repository at this point in the history
  • Loading branch information
rmdm committed Sep 28, 2018
1 parent dca8d4b commit c0e33fb
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,7 @@ Usage

const promback = require('promback')

const timeout = promback(function (ms, cb) {
setTimeout(cb, ms)
})

timeout(100)
.then(/* do something */)
const prombacked = promback(/* a function */)
```

How it is useful for library writers
Expand Down

0 comments on commit c0e33fb

Please sign in to comment.