Skip to content

Commit

Permalink
Update deadlock message to print task tag (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarsko authored Oct 9, 2023
1 parent 5b81d33 commit 1e6e642
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/execution.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,9 @@ impl Execution {
.filter(|t| !t.finished())
.map(|t| {
format!(
"{} (task {}{}{})",
"{} (task {:?}{}{})",
t.name().unwrap_or_else(|| "<unknown>".to_string()),
t.id().0,
t.id(),
if t.detached { ", detached" } else { "" },
if t.sleeping() { ", pending future" } else { "" },
)
Expand Down

0 comments on commit 1e6e642

Please sign in to comment.