Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Jan 31, 2021
1 parent 413159c commit 6a372b2
Showing 1 changed file with 4 additions and 19 deletions.
23 changes: 4 additions & 19 deletions tokio-macros/src/lib.rs
Expand Up @@ -251,25 +251,10 @@ pub fn main_rt(args: TokenStream, item: TokenStream) -> TokenStream {
///
/// ### Configure the runtime to start with time paused
///
/// ```rust
/// #[tokio::main(start_paused = true)]
/// async fn main() {
/// println!("Hello world");
/// }
/// ```
///
/// Equivalent code not using `#[tokio::main]`
///
/// ```rust
/// fn main() {
/// tokio::runtime::Builder::new_current_thread()
/// .enable_all()
/// .start_paused(true)
/// .build()
/// .unwrap()
/// .block_on(async {
/// println!("Hello world");
/// })
/// ```no_run
/// #[tokio::test(start_paused = true)]
/// async fn my_test() {
/// assert!(true);
/// }
/// ```
///
Expand Down

0 comments on commit 6a372b2

Please sign in to comment.