Skip to content

Driftless setInterval and setTimeout replacement for Node and the browser

License

Notifications You must be signed in to change notification settings

66Origin/driftless

 
 

Repository files navigation

driftless Build Status

Driftless setInterval and setTimeout replacement for Node and the browser

This fork

This fork fix this bug.

Performances

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.

About

Driftless setInterval and setTimeout replacement for Node and the browser

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%