You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to integrate cls into an existing project running both async/await and bluebird. Everything works terrific, until bluebird.delay is called, at which point the session gets lost. Example code:
var Promise = require('bluebird');
var cls = require('continuation-local-storage');
var session = cls.createNamespace('blah');
session.run(async () => {
session.set('one', 1);
await Promise.resolve().delay(1);
console.log(`========== one: ${cls.getNamespace('blah').get('one')} ==========`);
})
Help would be greatly appreciated
The text was updated successfully, but these errors were encountered:
I'm trying to integrate cls into an existing project running both async/await and bluebird. Everything works terrific, until bluebird.delay is called, at which point the session gets lost. Example code:
Help would be greatly appreciated
The text was updated successfully, but these errors were encountered: