Driftless setInterval and setTimeout replacement for Node and the browser
This fork fix this bug.
npm install driftless
import {
setDriftlessTimeout,
setDriftlessInterval,
clearDriftless,
} from 'driftless';
// Use like setTimeout and setInterval
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.