{"_id":"co-thread","_rev":"9-f8be2963f38adec7909ae9d07fdfe44d","name":"co-thread","description":"spawn multiple co 'threads'","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"co-thread","version":"0.0.1","repository":{"type":"git","url":"git://github.com/visionmedia/co-thread"},"description":"spawn multiple co 'threads'","main":"index.js","keywords":["co","thread","parallel"],"license":"MIT","devDependencies":{"co":"~3.0.2","co-request":"~0.1.1","make-test":"~0.1.0","should":"~3.1.2","mocha":"~1.17.1"},"bugs":{"url":"https://github.com/visionmedia/co-thread/issues"},"homepage":"https://github.com/visionmedia/co-thread","_id":"co-thread@0.0.1","dist":{"shasum":"57713f0ef4b87e5595d4f23711ffe4b3b6de5e74","tarball":"https://registry.npmjs.org/co-thread/-/co-thread-0.0.1.tgz","integrity":"sha512-faKKv1EgbihZsnmFEfcDQg/z2SvimPm4QzX/L3NqKkN5LjGG7AGFAXqL7ksQoXF+StcmdCXnqARHuJYih2EkhA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGuwRsnLUsPkOeN9Bty0mW7/ykBysN+FtUXWa6aNNtjXAiEAwdtg+Hbs5XFB9DPXGv/XTNos8IWZ8ocZLvfUwT9WPDA="}]},"_from":".","_npmVersion":"1.3.15","_npmUser":{"name":"tjholowaychuk","email":"tj@vision-media.ca"},"maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}]}},"readme":"\n# co-thread\n\n  Run a generator function in parallel N times.\n\n## Installation\n\n```\n$ npm install co-thread\n```\n\n## Example\n\n  Send a request in batches of `20` parallel GETs:\n\n```js\nvar thread = require('co-thread');\nvar get = require('co-request');\nvar co = require('co');\n\nco(function *(){\n  var times = 10;\n\n  while (times--) {\n    yield thread(function *(){\n      var res = yield get('http://google.com');\n      console.log(res.statusCode);\n    }, 20);\n  }\n\n})();\n```\n\n## License\n\n  MIT","maintainers":[{"name":"tjholowaychuk","email":"tj@vision-media.ca"}],"time":{"modified":"2022-06-13T06:23:43.957Z","created":"2014-02-01T17:51:16.041Z","0.0.1":"2014-02-01T17:52:20.766Z"},"readmeFilename":"Readme.md","repository":{"type":"git","url":"git://github.com/visionmedia/co-thread"},"users":{"fedor":true,"liunian":true}}