node-toobusy icon indicating copy to clipboard operation
node-toobusy copied to clipboard

require('toobusy').maxLag(10) does not return a function

Open arnaudchenyensu opened this issue 10 years ago • 0 comments

When using:

var toobusy = require('toobusy').maxLag(10);

toobusy is not a function. The right way seems to be:

var toobusy = require('toobusy');
toobusy.maxLag(10)

Therefore, the README is misleading IMO.

arnaudchenyensu avatar Mar 04 '16 00:03 arnaudchenyensu