How to use the continuation-local-storage.destroyNamespace function in continuation-local-storage

To help you get started, we’ve selected a few continuation-local-storage examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github hayes / unpm / lib / context.js View on Github external
function reset() {
  CLS.destroyNamespace('unpm')
  module.exports.ns = ns = CLS.createNamespace('unpm')
}
github aws / aws-xray-sdk-node / packages / core / lib / context_utils.js View on Github external
enableManualMode: function enableManualMode() {
    cls_mode = false;

    if (contextUtils.getNamespace(NAMESPACE))
      cls.destroyNamespace(NAMESPACE);

    logger.getLogger().debug('Overriding AWS X-Ray SDK mode. Set to manual mode.');
  },
github EvaEngine / EvaEngine.js / src / services / namespace.js View on Github external
destroy(name) {
    destroyNamespace(name);
    delete stores[name];
    return this;
  }

continuation-local-storage

userland implementation of https://github.com/joyent/node/issues/5243

BSD-2-Clause
Latest version published 6 years ago

Package Health Score

74 / 100
Full package analysis