Skip to content

Commit

Permalink
use block_on
Browse files Browse the repository at this point in the history
  • Loading branch information
maminrayej committed Feb 16, 2024
1 parent 56aeeb2 commit 0a9ee2d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tokio/src/runtime/runtime.rs
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ impl Runtime {
/// // delivered to all tasks. So the spawned task may get canceled before
/// // it gets to print the message. To force a deterministic output for this
/// // example, we will wait until the task is finished.
/// while !handle.is_finished() {}
/// let _ = rt.block_on(handle);
/// }
/// ```
pub fn enter(&self) -> EnterGuard<'_> {
Expand Down

0 comments on commit 0a9ee2d

Please sign in to comment.