@essentials/request-timeout
v1.3.0
Published
A setTimeout() function that uses requestAnimationFrame() in the background for ticks
Downloads
141,781
Maintainers
Readme
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