node-continuation-local-storage icon indicating copy to clipboard operation
node-continuation-local-storage copied to clipboard

Impact of async_hook on the CLS

Open vdeturckheim opened this issue 7 years ago • 1 comments

Hi,

It seems that the async hooks feature will be available soon in Node.js core (https://github.com/nodejs/node/pull/12953).

If a new version of the CLS is made using this features/ what would be the impact?

  • can the CLS have a double behavior (one if 'async_hooks' is available, and one other)?
  • will this mean that there will be fewer context loss?

Thanks a lot!

vdeturckheim avatar May 11 '17 08:05 vdeturckheim

I don't know what's happening here, but here is a fork that will use async_hooks: https://github.com/Jeff-Lewis/cls-hooked/issues/4

magnusjt avatar Jun 09 '17 13:06 magnusjt