Timeout function decorator
$ component install component/timeout
vartimeout=require('timeout');functionsomething(fn){setTimeout(function(){fn(null,'results');},1000);}something=timeout(something,500);Apply timeout of ms to callback and return the new function.
MIT