Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
proper calls for require for complete running examples
  • Loading branch information
atilacamurca committed Feb 23, 2017
1 parent 01a8441 commit 4df56cc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Expand Up @@ -31,6 +31,8 @@ This behavior can be altered by specifying a custom event type.
### Object-Oriented style

``` js
var WaitForAll = require('ewait').WaitForAll;

var all = new WaitForAll({
timeout: 2000, // Wait for 2000ms max.
event: 'flushed' // Wait for a custom event.
Expand All @@ -52,6 +54,8 @@ all.wait();
### Functional style

``` js
var ewait = require('ewait');

var toilets = [toilet1, toilet2, toilet3];

ewait.waitForAll(toilets, function(err) {
Expand Down

0 comments on commit 4df56cc

Please sign in to comment.