1.0.2 • Published 8 years ago

f-sync v1.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
8 years ago

f-sync

queue work to happen within frames to allow the UI some time to update.

Install

npm install f-sync

Usage

var fSync = require('f-sync');

var queue = fSync(options);

queue(function(){
    // Some work to be done
});

// cancel queue mid-flight
queue.cancel(); // no more work will happen.

Example

npm run watch-example

then open example/index.html in a browser.