JSPM

@react-sextant/event-loop-delay

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 3
  • Score
    100M100P100Q37194F
  • License MIT

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

Package Exports

  • @react-sextant/event-loop-delay

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 (@react-sextant/event-loop-delay) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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