Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 400,000 packages pre-installed, including @react-sextant/event-loop-delay with all npm packages installed. Try it out:

var eventLoopDelay = require("@react-sextant/event-loop-delay")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

@react-sextant/event-loop-delay v0.1.1

Call at constant intervals in event-loop, same like a configurable `wait` requestAnimationFrame.

event-loop-delay

npm version Downloads/month Build Status Coverage Status Dependency Status

Call at constant intervals in event-loop

💿 Installation

Use npm to install then use a bundler.

npm install @react-sextant/event-loop-delay

Or download from dist directory.

📖 Usage

import {Delay} from '@react-sextant/event-loop-delay'

let delay = new Delay(500); // Call at interval 500ms

delay(function(){
  //...
})

🔧 Contribution

before npm run build need npm run regenerator to make a Delay-es5.js for UMD version

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free