sloppy-queue-flow

A constructor function for queue-flow that sacrifices queue correctness for parallelism

sloppy-queue-flow

For Node.js

npm install sloppy-queue-flow

For developers, npm test to check your changes (using nodeunit) haven't broken existing functionality. Literate programming documentation can be found inside of the /docs directory, generated by docco.

For details on how it all works in general, see the queue-flow library for detailed API documentation and usage examples.

sloppy-queue-flow is a replacement constructor function that eliminates guarantees on queue order to allow execution on each item in the queue to traverse through the flow as fast as possible. This is a trade-off that makes sense for things like the Express-like server example from the main queue-flow library, but would break the dependency resolution example. Essentially, sloppy-queue-flow is only valid for cases where all operations are commutative, which is not everything, but does cover a surprising number of cases.

To use sloppy-queue-flow in Node.js, simply:

var q = require('queue-flow');
var sloppy = require('sloppy-queue-flow');
 
q('sloppyQueue', sloppy) // Code here 

Copyright (C) 2012 by David Ellis

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.