{"_id":"jankyqueue","_rev":"8-0a0dfbd025ad8108a7472d9059b47282","name":"jankyqueue","description":"Knuckle-dragger in-process queuing","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.0":{"name":"jankyqueue","description":"Knuckle-dragger in-process queuing","homepage":"http://github.com/e14n/jankyqueue","version":"0.1.0","keywords":["queue","janky","step"],"engines":{"node":"0.8.x"},"author":{"name":"Evan Prodromou","email":"evan@e14n.com"},"scripts":{"test":"vows -i test/*-test.js"},"main":"./lib/jankyqueue.js","directories":{"lib":"./lib/"},"devDependencies":{"vows":"0.6.x"},"dependencies":{},"repository":{"type":"git","url":"git://github.com/e14n/jankyqueue.git"},"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"_id":"jankyqueue@0.1.0","dist":{"shasum":"92d0535c8ade99983a2e62f142b5499f8e9b0872","tarball":"https://registry.npmjs.org/jankyqueue/-/jankyqueue-0.1.0.tgz","integrity":"sha512-o/NTnoCWTp+oF+Ysfby1csNihrwpTOG8x4uirAL4ocjx+nMLEBaQso68qVpOvp2fQlTsX33CYmUEsb66Dl82Uw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCv32RMhXGImPmYCpvUMlK1dycpE7qDVKNk6JfmCHpToQIhAMHQPrAQKFgmVWtoC7/geqcYys34NnysZSPj0HQ//7TW"}]},"_npmVersion":"1.1.65","_npmUser":{"name":"evanp","email":"evan@status.net"},"maintainers":[{"name":"evanp","email":"evan@status.net"}]},"0.1.1":{"name":"jankyqueue","description":"Knuckle-dragger in-process queuing","homepage":"http://github.com/e14n/jankyqueue","version":"0.1.1","keywords":["queue","janky","step"],"engines":{"node":">=0.8"},"author":{"name":"Evan Prodromou","email":"evan@e14n.com"},"scripts":{"test":"vows -i test/*-test.js"},"main":"./lib/jankyqueue.js","directories":{"lib":"./lib/"},"devDependencies":{"vows":"0.7.x"},"dependencies":{},"repository":{"type":"git","url":"git://github.com/e14n/jankyqueue.git"},"licenses":[{"type":"Apache 2.0","url":"http://www.apache.org/licenses/LICENSE-2.0.html"}],"_id":"jankyqueue@0.1.1","dist":{"shasum":"4181b0318fb32e77aee8c54af73f97660f2e88d2","tarball":"https://registry.npmjs.org/jankyqueue/-/jankyqueue-0.1.1.tgz","integrity":"sha512-9+CnJLL5bbt9boFrBM+4yhC8C0MW1JypTF6trF6u7+Evoa88CGIwYkQpbz7B0ox0oiV1trJ393Geghp+8o2Eyg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFi/du1f5UHqrtPHGaXFDpkOcSEOtj3qbP26z9AXvCcnAiBh6V3FoNM/W8en88TbucauPv62ZeMGNilWoJUUK+qoPg=="}]},"_from":".","_npmVersion":"1.2.14","_npmUser":{"name":"evanp","email":"evan@e14n.com"},"maintainers":[{"name":"evanp","email":"evan@status.net"}]}},"readme":"jankyqueue\n----------\n\nThis is a complete knuckle-dragger remedial queue class. I use\n[step](https://npmjs.org/package/step) to organize async stuff, and it\ndoesn't have queueing built in. So I made this and I use it and now\nI'm sharing it with you and if you don't like it you can go use\nsomething else.\n\nLicence\n=======\n\nCopyright 2012, E14N Inc.\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n> http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n\nOverview\n========\n\nYou can get to the Queue class by requiring jankyqueue.\n\n    var Queue = require(\"jankyqueue\");\n\nYou can make a new queue like this:\n\n    var q = new Queue(10);\n    \nThis makes a queue which can have 10 things going at the same time. To\ndo something, use the `enqueue` method.\n\n    // an async function\n    \n    var myfunc = function(param1, param2, callback) {\n        process.nextTick(function() {\n            callback(null, param1 + param2);\n        });\n    };\n\n    var arg1 = 23,\n        arg2 = 42;\n        \n    q.enqueue(myfunc, [arg1, arg2], function(err, result) {\n        if (err) {\n            console.error(err);\n        } else {\n            console.log(result);\n        }\n    });\n\nAPI\n===\n\n* `new Queue(len)`\n\n  Makes a new queue with length `len`. No more than `len` operations\n  will run at the same time.\n  \n* `enqueue(fn, args, callback)`\n\n  Enqueues an operation -- calling function `fn` on the array of\n  arguments `args`, and returning the results to `callback`.\n\n  If there aren't other operations running, it will run immediately;\n  if there are, it will wait until another one is done.\n","maintainers":[{"email":"evan@e14n.com","name":"evanp"}],"time":{"modified":"2022-06-19T03:41:57.912Z","created":"2012-11-01T19:17:34.112Z","0.1.0":"2012-11-01T19:17:35.033Z","0.1.1":"2013-03-15T11:09:08.108Z"},"author":{"name":"Evan Prodromou","email":"evan@e14n.com"},"repository":{"type":"git","url":"git://github.com/e14n/jankyqueue.git"},"homepage":"http://github.com/e14n/jankyqueue","keywords":["queue","janky","step"],"readmeFilename":"README.md"}