18 ms·
Also see https://github.com/othiym23/node-continuation-local-storage https://github.com/othiym23/node-continuation-local-storage
by nevir 9y ago
Also see https://github.com/othiym23/node-continuation-local-storage https://github.com/othiym23/node-continuation-local-storage
- electrotype 9y agoCan someone please compare both? Does the fact that Minizone is based on "async_hooks" make it more future proof? Less hacky?
- gcommer 9y agoZone.js is an existing library to try and provide CLS in javascript. async_hooks is an experimental API being built in to node to allow this. The OP is a project implementing a zone.js-style API using async_hooks. Also see this PR on the original zone.js project where they are working to use this in the original library, but have hit many edge cases/issues: https://github.com/angular/zone.js/pull/795 https://github.com/angular/zone.js/pull/795