Package Exports
- timers-browserify
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (timers-browserify) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Overview
Adds support for the timers
module to browserify.
Wait, isn't it already supported in the browser?
The public methods of the timers
module are:
setTimeout(callback, delay, [arg], [...])
clearTimeout(timeoutId)
setInterval(callback, delay, [arg], [...])
clearInterval(intervalId)
and indeed, browsers support these already.
So, why does this exist?
The timers
module also includes some private methods used in other built-in
Node.js modules:
enroll(item, delay)
unenroll(item)
active(item)
These are used to efficiently support a large quanity of timers with the same timeouts by creating only a few timers under the covers.