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
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