Content-Length: 214991 | pFad | http://github.com/tokio-rs/tokio/commit/8eedfd6864d532480c4d666f3a6a037d184b39ed

91 try to fix doctest · tokio-rs/tokio@8eedfd6 · GitHub
Skip to content

Commit

Permalink
try to fix doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
Ariel Ben-Yehuda committed Jan 10, 2025
1 parent 6972b7b commit 8eedfd6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tokio/src/runtime/dump.rs
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,12 @@ impl Trace {
//github.com/
//github.com/ Example usage:
//github.com/ ```
//github.com/ # use std::future::Future;
//github.com/ # use std::task::Poll;
//github.com/
//github.com/ # use tokio::runtime::dump::Trace;
//github.com/
//github.com/ # async fn test_fn() {
//github.com/ // some future
//github.com/ let mut test_future = std::pin::pin!(async move { tokio::task::yield_now().await; 0 });
//github.com/
Expand All @@ -242,6 +248,7 @@ impl Trace {
//github.com/ };
//github.com/
//github.com/ println!("{trace}");
//github.com/ # }
//github.com/ ```
//github.com/
//github.com/ ### Nested calls
Expand Down

0 comments on commit 8eedfd6

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/tokio-rs/tokio/commit/8eedfd6864d532480c4d666f3a6a037d184b39ed

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy