How to get the current task's ID? #267
Unanswered
Kazurin-775
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I had a case where the wakers of some tasks were lost during the processing of some incoming connections. Now I'm stuck on debugging, since I cannot identify which handler is faulty (all of the tasks have the same
spawn_location
). Is it possible to know the current task's ID in the code, so that I can use it for diagnostics?I don't think my case is similar to #120, since I cannot spawn a new task for every incoming connection due to the fact that my handlers are not
'static
.Beta Was this translation helpful? Give feedback.
All reactions