Used to serialize the execution of jobs
JavaScript
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
KeyedSerializer.js
Pool.js
README.md
Serializer.js
index.js
package.json

README.md

serializer

Used to serialize the execution of functions Now exposes Keyed serializer which allows you to serialize execution based on common keys.

Example usage

serializer = require('./serializer')

... ...

var processQueue = new serializer();

function SomeClass(){ }

SomeClass.prototype.someFunc = function(param1, param2, callback){ }

var inst = new SomeClass();

processQueue.add(inst,inst.someFunc,[1,2], function(err,result){ console.log(job finished); });