{"_id":"pend","_rev":"51710","name":"pend","description":"dead-simple optimistic async helper","dist-tags":{"latest":"1.2.0"},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}],"time":{"modified":"2021-06-03T10:15:47.000Z","created":"2013-08-02T06:43:14.314Z","1.2.0":"2014-11-23T21:52:52.675Z","1.1.3":"2014-08-20T23:34:46.349Z","1.1.2":"2014-07-05T07:41:37.829Z","1.1.1":"2013-09-24T07:32:33.755Z","1.1.0":"2013-08-10T18:10:53.649Z","1.0.0":"2013-08-02T06:43:14.314Z"},"users":{"debearloper":true,"tenaciousmv":true,"jeremygaither":true},"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"repository":{"type":"git","url":"git://github.com/andrewrk/node-pend.git"},"versions":{"1.2.0":{"name":"pend","version":"1.2.0","description":"dead-simple optimistic async helper","main":"index.js","scripts":{"test":"node test.js"},"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git://github.com/andrewrk/node-pend.git"},"bugs":{"url":"https://github.com/andrewrk/node-pend/issues"},"gitHead":"ed57bbe8520518dca24d0c6bb847ffb6b68ae6f9","_id":"pend@1.2.0","_shasum":"7a57eb550a6783f9115331fcf4663d5c8e007a50","_from":".","_npmVersion":"1.4.21","_npmUser":{"name":"superjoe","email":"superjoe30@gmail.com"},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}],"dist":{"shasum":"7a57eb550a6783f9115331fcf4663d5c8e007a50","size":2308,"noattachment":false,"key":"/pend/-/pend-1.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pend/download/pend-1.2.0.tgz"},"directories":{},"publish_time":1416779572675,"_cnpm_publish_time":1416779572675,"_hasShrinkwrap":false},"1.1.3":{"name":"pend","version":"1.1.3","description":"dead-simple optimistic async helper","main":"index.js","scripts":{"test":"node test.js"},"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git://github.com/superjoe30/node-pend.git"},"bugs":{"url":"https://github.com/superjoe30/node-pend/issues"},"_id":"pend@1.1.3","dist":{"shasum":"ca68dd39e6dd7f8d3f8801dcdbcb44846c431845","size":2212,"noattachment":false,"key":"/pend/-/pend-1.1.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/pend/download/pend-1.1.3.tgz"},"_from":".","_npmVersion":"1.3.10","_npmUser":{"name":"superjoe","email":"superjoe30@gmail.com"},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}],"directories":{},"publish_time":1408577686349,"_cnpm_publish_time":1408577686349,"_hasShrinkwrap":false},"1.1.2":{"name":"pend","version":"1.1.2","description":"dead-simple optimistic async helper","main":"index.js","scripts":{"test":"node test.js"},"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git://github.com/superjoe30/node-pend.git"},"bugs":{"url":"https://github.com/superjoe30/node-pend/issues"},"gitHead":"453dd499161e68b0ff84bff75890179880ad0350","homepage":"https://github.com/superjoe30/node-pend","_id":"pend@1.1.2","_shasum":"b3760218c85b93ca893f4088005d3ff80253252b","_from":".","_npmVersion":"1.4.14","_npmUser":{"name":"superjoe","email":"superjoe30@gmail.com"},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}],"dist":{"shasum":"b3760218c85b93ca893f4088005d3ff80253252b","size":1979,"noattachment":false,"key":"/pend/-/pend-1.1.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/pend/download/pend-1.1.2.tgz"},"directories":{},"publish_time":1404546097829,"_cnpm_publish_time":1404546097829,"_hasShrinkwrap":false},"1.1.1":{"name":"pend","version":"1.1.1","description":"dead-simple optimistic async helper","main":"index.js","scripts":{"test":"node test.js"},"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git://github.com/superjoe30/node-pend.git"},"bugs":{"url":"https://github.com/superjoe30/node-pend/issues"},"readmeFilename":"README.md","_id":"pend@1.1.1","dist":{"shasum":"fabca8f067ff204012fa7645759ef9c158fbc907","size":1302,"noattachment":false,"key":"/pend/-/pend-1.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/pend/download/pend-1.1.1.tgz"},"_from":".","_npmVersion":"1.3.8","_npmUser":{"name":"superjoe","email":"superjoe30@gmail.com"},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}],"directories":{},"publish_time":1380007953755,"_cnpm_publish_time":1380007953755,"_hasShrinkwrap":false},"1.1.0":{"name":"pend","version":"1.1.0","description":"dead-simple optimistic async helper","main":"index.js","scripts":{"test":"node test.js"},"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git://github.com/superjoe30/node-pend.git"},"bugs":{"url":"https://github.com/superjoe30/node-pend/issues"},"readmeFilename":"README.md","_id":"pend@1.1.0","dist":{"shasum":"1b28a5cb49e02e25a84aa7229917fbdb61e72c8d","size":1225,"noattachment":false,"key":"/pend/-/pend-1.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pend/download/pend-1.1.0.tgz"},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"superjoe","email":"superjoe30@gmail.com"},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}],"directories":{},"publish_time":1376158253649,"_cnpm_publish_time":1376158253649,"_hasShrinkwrap":false},"1.0.0":{"name":"pend","version":"1.0.0","description":"dead-simple optimistic async helper","main":"index.js","scripts":{"test":"node test.js"},"author":{"name":"Andrew Kelley","email":"superjoe30@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git://github.com/superjoe30/node-pend.git"},"bugs":{"url":"https://github.com/superjoe30/node-pend/issues"},"readmeFilename":"README.md","_id":"pend@1.0.0","dist":{"shasum":"69e2cf851c1445bdc9e90f60a58f13684165c581","size":1076,"noattachment":false,"key":"/pend/-/pend-1.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/pend/download/pend-1.0.0.tgz"},"_from":".","_npmVersion":"1.3.5","_npmUser":{"name":"superjoe","email":"superjoe30@gmail.com"},"maintainers":[{"name":"superjoe","email":"superjoe30@gmail.com"}],"directories":{},"publish_time":1375425794314,"_cnpm_publish_time":1375425794314,"_hasShrinkwrap":false}},"readme":"# Pend\n\nDead-simple optimistic async helper.\n\n## Usage\n\n```js\nvar Pend = require('pend');\nvar pend = new Pend();\npend.max = 10; // defaults to Infinity\nsetTimeout(pend.hold(), 1000); // pend.wait will have to wait for this hold to finish\npend.go(function(cb) {\n  console.log(\"this function is immediately executed\");\n  setTimeout(function() {\n    console.log(\"calling cb 1\");\n    cb();\n  }, 500);\n});\npend.go(function(cb) {\n  console.log(\"this function is also immediately executed\");\n  setTimeout(function() {\n    console.log(\"calling cb 2\");\n    cb();\n  }, 1000);\n});\npend.wait(function(err) {\n  console.log(\"this is excuted when the first 2 have returned.\");\n  console.log(\"err is a possible error in the standard callback style.\");\n});\n```\n\nOutput:\n\n```\nthis function is immediately executed\nthis function is also immediately executed\ncalling cb 1\ncalling cb 2\nthis is excuted when the first 2 have returned.\nerr is a possible error in the standard callback style.\n```\n","_attachments":{},"bugs":{"url":"https://github.com/andrewrk/node-pend/issues"},"license":"MIT"}