Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

1 Commit

Repository files navigation

timeout

Timeout function decorator

Installation

$ component install component/timeout

Example

vartimeout=require('timeout');functionsomething(fn){setTimeout(function(){fn(null,'results');},1000);}something=timeout(something,500);

API

timeout(callback, ms)

Apply timeout of ms to callback and return the new function.

License

MIT

About

Timeout function decorator

Resources

Stars

7 stars

Watchers

5 watching

Forks

Releases

Packages

Contributors

Languages