rafq

0.0.3 • Public • Published

rafq

Enqueue operations to be called in the next frame using requestAnimationFrame.

Usage

import rafq from 'rafq';
 
// Create a new requestAnimationFrame queue
const q = rafq();
 
// Add an operation to the queue
q.add(myfunc);
 
// Remove an operation from the queue
q.remove(myfunc);
 
// Clear the queue entirely
q.clear();

Package Sidebar

Install

npm i rafq

Weekly Downloads

4

Version

0.0.3

License

MIT

Last publish

Collaborators

  • jacobbuck