File: missing.rs

package info (click to toggle)
rust-async-backtrace 0.2.7-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 252 kB
  • sloc: makefile: 2
file content (22 lines) | stat: -rw-r--r-- 413 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
//! Run this example to see how functions NOT annotated with
//! `#[async_backtrace::framed]` don't appear in taskdumps.

#[tokio::main]
async fn main() {
    foo().await;
}

#[async_backtrace::framed]
async fn foo() {
    bar().await;
}

/* #[async_backtrace::framed] */
async fn bar() {
    baz().await;
}

#[async_backtrace::framed]
async fn baz() {
    println!("{}", async_backtrace::taskdump_tree(true));
}