Driftless setInterval and setTimeout replacement for Node and the browser
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode
examples Refactor May 27, 2018
lib
src Refactor May 27, 2018
tests
.babelrc Refactor May 27, 2018
.eslintignore Refactor May 27, 2018
.eslintrc.js Refactor May 27, 2018
.gitignore Populate repository Apr 5, 2014
.npmignore
.travis.yml
LICENSE Initial commit Apr 5, 2014
README.md
comparison.gif Update README May 27, 2018
package-lock.json 2.0.3 May 28, 2018
package.json 2.0.3 May 28, 2018

README.md

driftless Build Status

Driftless setInterval and setTimeout replacement for Node and the browser

comparison

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.