package
Error on timeout.
npm install co-timeoutGitHub-flavored package documentation.
Across all versions, last 30 days.
578 in 30 days
Runtime metadata.
Estimated unpacked size across 3 packages.
6.6 kB
Includes dependencies.
Error on timeout.
function *install(ms){
yield timeout(ms, function*(){
yield pkg.resolve('org/project');
yield pkg.fetch('org/project');
yield pkg.extract('org/project', '/path/to/org-project');
});
}
try {
yield install('100ms');
} catch (e) {
console.log('retry');
yield install('500ms');
}Timeout with an error after ms.
(MIT)