disruptors
v0.0.2
Published
precision time in javascript
Downloads
13
Maintainers
Readme
DISRUPTORS
Neural Line
disruptors
precision timer
D.I.S.R.U.P.T.O.R.S ~ /dɪsˈrʌptəs/
Installation
npm i disruptors
yarn add disruptors
what is it
disruptors is a collection of browser optimised precision timers for react, typescript and javascript functions. includes: wait, at, isTime and timer
why
disruptors uses requestAnimationFrame rather than set time out so it could be more precise and optimised by the browser
Usage example
import {wait} from 'disruptors'
const scheduledTask = async () => {
//before
await wait(5000)
//after
console.log('after five second')
}
Q0.0U0.0A0.0N0.0T0.0U0.0M0 - I0.0N0.0C0.0E0.0P0.0T0.0I0.0O0.0N0.0S0