Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 705 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 705 Bytes

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.