driftless
v2.0.3
Published
Driftless setInterval and setTimeout replacement for Node and the browser
Downloads
423,786
Maintainers
Readme
driftless

Driftless setInterval and setTimeout replacement for Node and the browser
Usage
npm install driftless
import {
setDriftlessTimeout,
setDriftlessInterval,
clearDriftless,
} from 'driftless';
// Use like setTimeout and setInterval
How it works
driftless
repeatedly calls setTimeout in advance of the requested timeout for
greater accuracy. It does this recursively, until the timeout is reached within
a given threshold.