Jeff-Lewis / cls-hooked

cls-hooked : CLS using AsynWrap or async_hooks instead of async-listener for node 4.7+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

M1178475702 opened this issue · comments

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?

can not reproduce...

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