async-hook-domain:建立在async_hooks上的类域错误处理的实现

时间:2024-05-19 18:32:33
【文件属性】:

文件名称:async-hook-domain:建立在async_hooks上的类域错误处理的实现

文件大小:55KB

文件格式:ZIP

更新时间:2024-05-19 18:32:33

JavaScript

异步挂钩域 (已弃用的) domain节点核心模块的错误处理属性的实现,在之上重新实现。 用法 const Domain = require ( 'async-hook-domain' ) // instantiating a Domain attaches it to the current async execution // context, and all child contexts that come off of it. You don't have // to call d.enter() or d.run(cb), just instantiate and it's done. // Pass an error-handling function to the constructor. This function // will be called whenever


【文件预览】:
async-hook-domain-master
----.gitignore(53B)
----README.md(5KB)
----.github()
--------workflows()
--------FUNDING.yml(64B)
----test()
--------run.js(2KB)
--------fixtures()
--------sms.js(95B)
----LICENSE(765B)
----package.json(1KB)
----index.js(7KB)
----tap-snapshots()
--------test-run.js-test-fixtures-no-handler.js-TAP.test.js(648B)
--------test-run.js-test-fixtures-promise-rejections.js-TAP.test.js(1KB)
--------test-run.js-test-fixtures-child.js-TAP.test.js(631B)
--------test-run.js-test-fixtures-promise-rejections-unhandled-none.js-TAP.test.js(703B)
--------test-run.js-test-fixtures-promise-throwing-handler.js-TAP.test.js(710B)
--------test-run.js-test-fixtures-promise-rejections-unhandled-strict.js-TAP.test.js(838B)
--------test-run.js-test-fixtures-debug.js-TAP.test.js(518B)
--------test-run.js-test-fixtures-multiple-destroy.js-TAP.test.js(543B)
--------test-run.js-test-fixtures-throw-in-handler.js-TAP.test.js(667B)
--------test-run.js-test-fixtures-uncaught.js-TAP.test.js(688B)
--------test-run.js-test-fixtures-basic.js-TAP.test.js(575B)
--------test-run.js-test-fixtures-other-handler.js-TAP.test.js(660B)
--------test-run.js-test-fixtures-destroy.js-TAP.test.js(546B)
--------test-run.js-test-fixtures-promise.js-TAP.test.js(957B)
--------test-run.js-test-fixtures-promise-no-domain.js-TAP.test.js(1KB)
--------test-run.js-test-fixtures-process-clubbing.js-TAP.test.js(807B)
--------test-run.js-test-fixtures-promise-rejections-unhandled-warn.js-TAP.test.js(1KB)
----package-lock.json(123KB)

网友评论