Skip to content

Commit

Permalink
chore: fix typos in tokio_executor.rs (#5157)
Browse files Browse the repository at this point in the history
  • Loading branch information
tisonkun authored Oct 5, 2024
1 parent d6880c6 commit 865fe58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/types/execute/executors/tokio_executor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ use crate::*;
pub struct TokioExecutor {}

impl Execute for TokioExecutor {
/// Tokio's JoinHandle has it's own `abort` support, so dropping handle won't cancel the task.
/// Tokio's JoinHandle has its own `abort` support, so dropping handle won't cancel the task.
fn execute(&self, f: BoxedStaticFuture<()>) {
let _handle = tokio::task::spawn(f);
}
Expand Down Expand Up @@ -54,7 +54,7 @@ mod tests {
});

sleep(Duration::from_secs(2)).await;
// Task must has been finished even without await task.
// Task must have been finished even without await task.
assert!(finished.load(Ordering::Relaxed))
}
}

0 comments on commit 865fe58

Please sign in to comment.