Skip to content

Commit

Permalink
Docs: update doc comment of fn poll_in_place()
Browse files Browse the repository at this point in the history
  • Loading branch information
SteveLauC committed Aug 5, 2024
1 parent 77ad0ab commit dc96569
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openraft/src/testing/runtime/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ impl<Rt: AsyncRuntime> Suite<Rt> {
}
}

/// A helper function to peek a future's state.
/// Polls the future, and returns its current state.
fn poll_in_place<F: std::future::Future>(fut: Pin<&mut F>) -> Poll<F::Output> {
let waker = futures::task::noop_waker();
let mut cx = futures::task::Context::from_waker(&waker);
Expand Down

0 comments on commit dc96569

Please sign in to comment.