tarn.js:Node.js的简单而强大的资源池

时间:2021-05-27 08:49:01
【文件属性】:
文件名称:tarn.js:Node.js的简单而强大的资源池
文件大小:22KB
文件格式:ZIP
更新时间:2021-05-27 08:49:01
JavaScript 为什么还要另一个资源池? Tarn专注于鲁棒性和从错误中恢复的能力。 Tarn对所有可能失败或超时的操作都设置了超时,因此您永远都不应以充满废话的情况而告终。 Tarn具有完善的测试套件,我们致力于添加测试并修复所有发现的错误。 塔恩将永远保持简单。 安装 npm install tarn 用法 const { Pool , TimeoutError } = require ( 'tarn' ) ; const pool = new Pool ( { // Function that creates a resource. You can either pass the resource // to the callback(error, resource) or return a promise that resolves the resource // (but n
【文件预览】:
tarn.js-master
----.eslintrc.json(831B)
----.prettierignore(3B)
----src()
--------tarn.ts(156B)
--------TimeoutError.ts(43B)
--------PromiseInspection.ts(514B)
--------utils.ts(1KB)
--------Pool.ts(21KB)
--------PendingOperation.ts(1KB)
--------Resource.ts(434B)
----.circleci()
--------config.yml(855B)
----.travis.yml(185B)
----tsconfig.json(280B)
----LICENSE(1KB)
----.prettierrc(88B)
----README.md(6KB)
----tests.js(67KB)
----.gitignore(64B)
----package.json(2KB)

网友评论