driftless
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/driftless package

2.0.3 • Public • Published

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.

/driftless/

    Package Sidebar

    Install

    npm i driftless

    Weekly Downloads

    54,634

    Version

    2.0.3

    License

    MIT

    Unpacked Size

    9.47 kB

    Total Files

    5

    Last publish

    Collaborators

    • dbkaplun