JSPM

@essentials/request-timeout

1.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 23636
  • Score
    100M100P100Q162208F
  • License MIT

A setTimeout() function that uses requestAnimationFrame() in the background for ticks

Package Exports

  • @essentials/request-timeout

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@essentials/request-timeout) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme


@essentials/request-timeout

Bundlephobia Types NPM Version MIT License

npm i @essentials/request-timeout

A setTimeout() function that uses requestAnimationFrame() in the background for ticks

Quick Start

import {requestTimeout, clearRequestTimeout} from '@essentials/request-timeout'

// Has the same API as setTimeout
const handle = requestTimeout(() => {}, 300)
// Has the same API as clearTimeout
clearRequestTimeout(handle)

LICENSE

MIT