Closed NekrasovEV closed 8 years ago
I replaced this code
app.use(function*(next){
yield new Promise(nameSpace.bind(function (resolve) {
resolve();
}));
nameSpace.set('token', 123);
yield next;
})
it works
app.use(function*(next){
let context = nameSpace.createContext();
nameSpace.enter(context);
try {
nameSpace.set('token', 123);
yield next;
}
finally {
nameSpace.exit(context);
}
})