-
When I am diagnosing deadlock issue in my application, I'd to print lock guard span logs. I found there's Did I miss something? Could tokio user enable mutex/rwlock guard span? (Plus, is there any better way to detect deadlock with tokio? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I retried in a brand-new project and that works. Seems I didn't configure my subscriber right in the origin project. |
Beta Was this translation helpful? Give feedback.
-
Unfortunately, detecting deadlocks is not as easy with async locks as it is for something like |
Beta Was this translation helpful? Give feedback.
Unfortunately, detecting deadlocks is not as easy with async locks as it is for something like
parking_lot
. There could be things like atokio::select!
that the lock doesn't know about, but which can resolve the deadlock by cancelling a call tolock
.