Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't get ctx when use await in async function. #61

Open
M1178475702 opened this issue Jun 6, 2020 · 1 comment
Open

Can't get ctx when use await in async function. #61

M1178475702 opened this issue Jun 6, 2020 · 1 comment

Comments

@M1178475702
Copy link

image

Like the image above, when i tried to get the value in namespace after await one promise in a async function, i got undefined.
I guess it maybe due to the chain of function callback, in some aspect.
Can I reobtain values in the namespace after calling Await?

@dennisleung
Copy link

can not reproduce...

  • Node v12.18.3
  • cls-hooked v4.2.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants