Skip to content

Commit

Permalink
fix current_thread runtime error
Browse files Browse the repository at this point in the history
  • Loading branch information
SparkyPotato committed Mar 15, 2023
1 parent fd2b09e commit f3f4bab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tokio/src/runtime/task/join.rs
Expand Up @@ -182,9 +182,9 @@ impl<T> JoinHandle<T> {
/// ```rust
/// use tokio::time;
///
/// #[tokio::main]
/// #[tokio::main(flavor = "current_thread")]
/// async fn main() {
/// # tokio::time::pause();
/// # time::pause();
/// let mut handles = Vec::new();
///
/// handles.push(tokio::spawn(async {
Expand Down Expand Up @@ -261,7 +261,7 @@ impl<T> JoinHandle<T> {
/// ```rust
/// use tokio::{time, task};
///
/// #[tokio::main]
/// #[tokio::main(flavor = "current_thread")]
/// async fn main() {
/// # tokio::time::pause();
/// let mut handles = Vec::new();
Expand Down

0 comments on commit f3f4bab

Please sign in to comment.